Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Commit

Permalink
#14 fix /etc/timezone for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
donsizemore committed Mar 2, 2016
1 parent 089d2cd commit afb5883
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ansible/roles/timezone/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
sudo: yes
file: path=/etc/localtime state=link src="/usr/share/zoneinfo/{{timezone}}" force=yes mode=0644

- name: /etc/timezone is a directory, want file instead
sudo: yes
file: path=/etc/timezone state=absent
when: ansible_os_family == "RedHat"

- name: set current time zone in /etc/timezone
sudo: yes
template: src=timezone.j2 dest=/etc/timezone owner=root group=root mode=0644

0 comments on commit afb5883

Please sign in to comment.