Prakhar Srivastava
2018-11-14 a540411df7b373c71f936b4a727d571e9956026f
commit | author | age
85040c 1 - name: Remove ansbile-2.7.1
PS 2   yum:
3    name: ansible
4    state: absent
9d137c 5
PS 6 - name: Install pip
7   yum:
8    name: 
9     - python-pip 
10     - gcc
11    state: latest
12
85040c 13 - name: Install ansible-2.7.0
PS 14   pip:
a54041 15    name: ansible==2.7.0
802fdc 16 - name: Download Tower Setup file
P 17   unarchive:
18     src: https://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-latest.tar.gz
19     dest: /root/
20     remote_src: yes 
21   tags:
22     - install-tower
23
24
25 - name: Remove directory if it exists
26   file:
27    path: /root/ansible-tower-setup-latest
28    state: absent
29
30 - name: Rename the ansible tower setup directory name
31   shell: mv /root/ansible-tower-setup-* /root/ansible-tower-setup-latest
32
33
34 - name: Create template file
35   template:
36     src: tower_template_inventory.j2
37     dest: /root/ansible-tower-setup-latest/inventory
38   tags:
39     - install-tower
40
41 - name: Run Ansible Tower setup
42   shell: /root/ansible-tower-setup-latest/setup.sh
43   async: 3600
44   poll: 36
45   tags:
46     - install-tower