diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-27 20:32:49 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-08-27 20:32:49 +0200 |
commit | 9881c25ef9d70c442bf486f85381022432600984 (patch) | |
tree | 66ffc6984b453c21be7e3b6024715456e69f34bd /ansible/roles/timezone | |
parent | e7073180c18b8bc3d416cf370a8cd9181bccfecf (diff) | |
download | infra-9881c25ef9d70c442bf486f85381022432600984.tar.gz infra-9881c25ef9d70c442bf486f85381022432600984.tar.bz2 infra-9881c25ef9d70c442bf486f85381022432600984.tar.xz infra-9881c25ef9d70c442bf486f85381022432600984.zip |
o Force the localtime to be a link.
o Do not require sudo inside the role.
Diffstat (limited to 'ansible/roles/timezone')
-rw-r--r-- | ansible/roles/timezone/handlers/main.yml | 2 | ||||
-rw-r--r-- | ansible/roles/timezone/tasks/main.yml | 12 |
2 files changed, 5 insertions, 9 deletions
diff --git a/ansible/roles/timezone/handlers/main.yml b/ansible/roles/timezone/handlers/main.yml index 0bd7c0d..daf0f5f 100644 --- a/ansible/roles/timezone/handlers/main.yml +++ b/ansible/roles/timezone/handlers/main.yml @@ -1,5 +1,3 @@ --- - name: reconfigure tzdata shell: dpkg-reconfigure -f noninteractive tzdata - - diff --git a/ansible/roles/timezone/tasks/main.yml b/ansible/roles/timezone/tasks/main.yml index 0a7744a..1279897 100644 --- a/ansible/roles/timezone/tasks/main.yml +++ b/ansible/roles/timezone/tasks/main.yml @@ -1,10 +1,8 @@ --- - tags: - timezone - block: - - become: yes - file: - src: /usr/share/zoneinfo/Europe/Oslo - dest: /etc/localtime - state: link - notify: reconfigure tzdata + file: + src: /usr/share/zoneinfo/Europe/Oslo + dest: /etc/localtime + state: link + notify: reconfigure tzdata |