victorock.tower_config
Ansible Tower Configuration
=========
This is a simple role to set up Ansible Tower by Red Hat.
Requirements
- You need to have
ansible-tower-cli
installed.
Role Variables
You can find the settings in the defaults/main.yml
file.
---
tower_config:
host: "tower.example.com"
username: "admin"
password: "toweradmin"
verify_ssl: false
settings:
license:
company_name: "Your Company Name"
contact_email: "[email protected]"
contact_name: "Your Name"
hostname: "Your Hostname"
instance_count: <number>
license_date: <date>
license_key: "Your License Key"
license_type: "Your License Type"
subscription_name: "Your Subscription Name"
trial: <true/false>
eula_accepted: true
proxy:
http_proxy: "http://172.17.0.1:3128"
https_proxy: "http://172.17.0.1:3128"
no_proxy: "localhost,127.0.0.0/8"
organization:
README:
name: "README"
description: "README"
custom_virtualenv: "/path/to/virtualenv/readme" # Set to false, null, or leave empty to remove
users:
- name: "infraops"
password: "infraops"
email: "[email protected]"
first_name: "Infrastructure"
last_name: "Operations"
superuser: true
auditor: false
- name: "netops"
password: "netops"
email: "[email protected]"
first_name: "Network"
last_name: "Operations"
superuser: false
auditor: false
- name: "devops"
password: "devops"
email: "[email protected]"
first_name: "Developer"
last_name: "Operations"
superuser: false
auditor: false
- name: "sysops"
password: "sysops"
email: "[email protected]"
first_name: "System"
last_name: "Operations"
superuser: false
auditor: false
- name: "secops"
password: "secops"
email: "[email protected]"
first_name: "Security"
last_name: "Operations"
superuser: false
auditor: true
teams:
- name: "infraops"
description: "Infrastructure Operations"
members:
- name: "netops"
- name: "devops"
- name: "sysops"
- name: "secops"
- name: "netops"
description: "Network Operations"
members:
- name: "netops"
- name: "devops"
description: "Developer Operations"
members:
- name: "devops"
- name: "sysops"
description: "System Operations"
members:
- name: "sysops"
- name: "secops"
description: "Security Operations"
members:
- name: "secops"
credentials:
- name: "empty-scm"
username: null
password: null
kind: "scm"
description: "Empty credential"
- name: "network-nxos-ssh"
kind: "ssh"
description: "Credential for NXOS"
username: "vagrant"
password: "vagrant"
- name: "system-linux-ssh"
kind: "ssh"
description: "Credential for Linux"
username: "vagrant"
password: "vagrant"
projects:
- name: "Dev: netops:ansible-tower-example"
description: "Dev: netops:ansible-tower-example"
scm_credential: "empty-scm"
scm_type: "git"
scm_branch: "dev"
scm_update_on_launch: true
scm_url: "https://github.com/ansible/tower-example"
inventories:
- name: "infraops"
description: "infraops"
- name: "netops"
description: "netops"
job_templates:
- name: "Dev: netops:helloworld"
description: "Dev: netops:helloworld"
project: "Dev: netops:ansible-tower-example"
playbook: "helloworld.yml"
inventory: "netops"
forks: 50
limit: "dev"
credential: "network-nxos-ssh"
permissions:
- team: "infraops"
role: "admin"
target_team: "infraops"
notifications:
- name: "webhook-example"
description: "Webhook notification"
notification_type: webhook
url: "https://www.example.com/webhook"
Dependencies
None
Example Playbook
- name: "Set up Ansible Tower by Red Hat"
hosts: tower
become: true
roles:
- victorock.tower_config
License
GPLv3
Author Information
Victor da Costa
Installa
ansible-galaxy install victorock.tower_config
Licenza
gpl-3.0
Download
222
Proprietario