summaryrefslogtreecommitdiffstats
path: root/roles/ansible_tower/tasks
diff options
context:
space:
mode:
authorMatt Woodson <mwoodson@redhat.com>2015-02-17 16:41:48 -0500
committerMatt Woodson <mwoodson@redhat.com>2015-02-17 16:41:48 -0500
commit8120628e5a4f913e770851c1a3172126d79695fc (patch)
tree7fba24a7a0a055eb02826221d14070cb4eddb376 /roles/ansible_tower/tasks
parent57e489934ab7d6d895f7e4df1def3f9170773fa1 (diff)
downloadopenshift-8120628e5a4f913e770851c1a3172126d79695fc.tar.gz
openshift-8120628e5a4f913e770851c1a3172126d79695fc.tar.bz2
openshift-8120628e5a4f913e770851c1a3172126d79695fc.tar.xz
openshift-8120628e5a4f913e770851c1a3172126d79695fc.zip
ansible tower install
Diffstat (limited to 'roles/ansible_tower/tasks')
-rw-r--r--roles/ansible_tower/tasks/main.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/roles/ansible_tower/tasks/main.yaml b/roles/ansible_tower/tasks/main.yaml
new file mode 100644
index 000000000..ccdc5a486
--- /dev/null
+++ b/roles/ansible_tower/tasks/main.yaml
@@ -0,0 +1,38 @@
+---
+- name: install some useful packages
+ yum: name={{ item }}
+ with_items:
+ - git
+ - python-pip
+ - unzip
+ - python-psphere
+ - ansible
+ - telnet
+ - ack
+
+- name: download Tower setup
+ #get_url: url=http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-{{tower_version}}.tar.gz
+ get_url: url=http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-2.1.1.tar.gz
+ dest=/opt/ force=yes
+
+- name: extract Tower
+ unarchive: src=/opt/ansible-tower-setup-2.1.1.tar.gz dest=/opt copy=no
+
+- name: copy tower_setup_conf.yml
+ copy: src=tower_setup_conf.yml dest=/opt/ansible-tower-setup-2.1.1 owner=root group=root mode=0644
+
+- name: copy inventory
+ copy: src=inventory dest=/opt/ansible-tower-setup-2.1.1 owner=root group=root mode=0644
+
+- name: run the Tower installer
+ command: chdir=/opt/ansible-tower-setup-2.1.1 creates=/etc/awx/settings.py ./setup.sh
+
+- name: Open firewalld port for http
+ firewalld: port=80/tcp permanent=true state=enabled
+
+- name: Open firewalld port for https
+ firewalld: port=443/tcp permanent=true state=enabled
+
+- name: Open firewalld port for https
+ firewalld: port=8080/tcp permanent=true state=enabled
+