Skip to content

Latest commit

 

History

History
 
 

config-ansible-tower

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

config-ansible-tower

This role is used to install and configure an Ansible Tower.

NOTE: This role only supports installing Ansible Tower as a Single Node as-is.

Requirements

Access to the Ansible Tower software and an Ansible Tower license.

Role Variables

The variables used to install an Ansible Tower instance are outlined in the table below.

Variable Description Required Defaults
ansible_tower.admin_password Admin password for the Ansible Tower install yes
ansible_tower.install.pg.host PostgreSQL hostname to listen on no nothing ('')
ansible_tower.install.pg.host PostgreSQL port to listen on no nothing ('')
ansible_tower.install.pg.database DB to use no 'awx'
ansible_tower.install.pg.username DB username to use no 'awx'
ansible_tower.install.pg.password DB password to use no Above mentioned admin password
ansible_tower.install.rabbitmq.port RabbitMQ port to use no 5672
ansible_tower.install.rabbitmq.vhost RabbitMQ Virtal Host no 'tower'
ansible_tower.install.rabbitmq.username RabbitMQ username to use no 'tower''
ansible_tower.install.rabbitmq.password RabbitMQ password to use no Above mentioned admin password
ansible_tower.install.rabbitmq.cookie RabbitMQ Cookie to use no 'cookiemonster'
ansible_tower.install.rabbitmq.use_long_name RabbitMQ whether to use long hostnames (FQDNs) or not no false
ansible_tower.install.ssl_certificate.cert Custom SSL certificate to use for Tower UI no
ansible_tower.install.ssl_certificate.key Custom SSL key to use with above mentioned certificate for Tower UI no

Example Inventory

---

ansible_tower:
  admin_password: 'admin'
  install:
    pg:
      database: 'tower'
      username: 'tower'
      password: 'tower01'
    rabbitmq:
      port: 5672
      use_long_name: false
    ssl_certificate:
      cert: /the/path/to/my/cert.crt
      key: /the/path/to/my/cert.key

Example Playbook

---

- hosts: tower
  roles:
  - role: config-ansibletower

License

Apache License 2.0

Author Information

Red Hat Community of Practice & staff of the Red Hat Open Innovation Labs.