Browse Source

more updates

Matt Woodson 10 years ago
parent
commit
eaeeb1ec83

+ 1 - 0
playbooks/aws/ansible-tower/config.yml

@@ -17,6 +17,7 @@
     - "vars.{{ oo_env }}.yml"
   roles:
     - ../../../roles/base_os
+    - ../../../roles/timezone
     - ../../../roles/ipv6_disable
     - ../../../roles/ansible_install
     - ../../../roles/ansible_tower

+ 8 - 8
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

+ 4 - 0
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