main.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. - name: install some useful packages
  3. yum: name={{ item }}
  4. with_items:
  5. - git
  6. - python-pip
  7. - unzip
  8. - python-psphere
  9. - ansible
  10. - telnet
  11. - ack
  12. - name: download Tower setup
  13. get_url: url=http://releases.ansible.com/ansible-tower/setup/ansible-tower-setup-2.1.1.tar.gz dest=/opt/ force=no
  14. - name: extract Tower
  15. unarchive: src=/opt/ansible-tower-setup-2.1.1.tar.gz dest=/opt copy=no creates=ansible-tower-setup-2.1.1
  16. - name: Open firewalld port for http
  17. firewalld: port=80/tcp permanent=true state=enabled
  18. - name: Open firewalld port for https
  19. firewalld: port=443/tcp permanent=true state=enabled
  20. - name: Open firewalld port for https
  21. firewalld: port=8080/tcp permanent=true state=enabled
  22. - name: Set (httpd_can_network_connect) flag on and keep it persistent across reboots
  23. seboolean: name=httpd_can_network_connect state=yes persistent=yes
  24. - name: Set (httpd_can_network_connect_db) flag on and keep it persistent across reboots
  25. seboolean: name=httpd_can_network_connect_db state=yes persistent=yes