From 9881c25ef9d70c442bf486f85381022432600984 Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Mon, 27 Aug 2018 20:32:49 +0200
Subject: o Force the localtime to be a link. o Do not require sudo inside the
 role.

---
 ansible/roles/timezone/tasks/main.yml | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

(limited to 'ansible/roles/timezone/tasks')

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
-- 
cgit v1.2.3