Created
August 19, 2013 08:46
-
-
Save shirou/6266969 to your computer and use it in GitHub Desktop.
Ansible-awx site.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This playbook deploys the AWX application (database, web and worker) to a | |
# single server. | |
- hosts: all | |
tasks: | |
- name: group hosts by distribution | |
group_by: key="{{ ansible_distribution }}-{{ ansible_distribution_version }}" | |
- hosts: RHEL-6*:CentOS-6*:SL-6* | |
user: root | |
roles: | |
- { role: packages_el6 } | |
- { role: postgres, pg_hba_location: "/var/lib/pgsql/data/pg_hba.conf" } | |
- { role: awx_install } | |
- { role: supervisor, sup_init_name: "supervisord", sup_conf_location: "/etc/supervisord.conf" } | |
- { role: httpd, httpd_init_name: "httpd" } | |
- { role: iptables } | |
- { role: misc } | |
- hosts: Fedora-* | |
user: root | |
roles: | |
- { role: packages_fedora } | |
- { role: postgres, pg_hba_location: "/var/lib/pgsql/data/pg_hba.conf" } | |
- { role: awx_install } | |
- { role: supervisor, sup_init_name: "supervisord", sup_conf_location: "/etc/supervisord.conf" } | |
- { role: httpd, httpd_init_name: "httpd" } | |
- { role: iptables } | |
- { role: misc } | |
- hosts: Ubuntu-12*:Ubuntu-13* | |
user: root | |
roles: | |
- { role: packages_ubuntu } | |
- { role: postgres, pg_hba_location: "/etc/postgresql/9.1/main/pg_hba.conf" } | |
- { role: awx_install } | |
- { role: supervisor, sup_init_name: "supervisor", sup_conf_location: "/etc/supervisor/conf.d/awx.conf" } | |
- { role: httpd, httpd_init_name: "apache2" } | |
- { role: misc } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment