diff options
Diffstat (limited to 'roles')
-rw-r--r-- | roles/ansible_tower/tasks/main.yaml | 16 | ||||
-rw-r--r-- | roles/timezone/tasks/main.yaml | 4 |
2 files changed, 12 insertions, 8 deletions
diff --git a/roles/ansible_tower/tasks/main.yaml b/roles/ansible_tower/tasks/main.yaml index ccdc5a486..8fe0634d2 100644 --- a/roles/ansible_tower/tasks/main.yaml +++ b/roles/ansible_tower/tasks/main.yaml @@ -15,14 +15,14 @@ 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: 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 diff --git a/roles/timezone/tasks/main.yaml b/roles/timezone/tasks/main.yaml new file mode 100644 index 000000000..339b4e0b2 --- /dev/null +++ b/roles/timezone/tasks/main.yaml @@ -0,0 +1,4 @@ +--- +- name: Setup correct timezone + command: timedatectl set-timezone America/New_York + when: ansible_os_family == "RedHat" and ansible_lsb.major_release|int >= 7 |