blob: 1d75a95e675de8599dd90163867ae338e4b829ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
---
- name: install some useful packages
yum: name={{ item }}
with_items:
- git
- python-pip
- unzip
- python-psphere
- ansible
- telnet
- ack
- python-ansible-tower-cli
- name: download Tower setup
get_url: url=http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-2.1.1.tar.gz dest=/opt/ force=no
- name: extract Tower
unarchive: src=/opt/ansible-tower-setup-2.1.1.tar.gz dest=/opt copy=no creates=ansible-tower-setup-2.1.1
- 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
- name: Set (httpd_can_network_connect) flag on and keep it persistent across reboots
seboolean: name=httpd_can_network_connect state=yes persistent=yes
- name: Set (httpd_can_network_connect_db) flag on and keep it persistent across reboots
seboolean: name=httpd_can_network_connect_db state=yes persistent=yes
|