From e5082a3d1ccafb574e9bfdf3965da29ceef61da5 Mon Sep 17 00:00:00 2001
From: Lars Beckers <lars.beckers@rwth-aachen.de>
Date: Mon, 11 May 2015 01:37:29 +0159
Subject: [PATCH] fix some bugs, optimize some other things

---
 common/files/keys/lars@aurora.pub | 1 +
 common/handlers/main.yml          | 3 +++
 common/tasks/filesystem.yml       | 2 +-
 common/tasks/ntpd.yml             | 8 ++++++++
 4 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 common/files/keys/lars@aurora.pub

diff --git a/common/files/keys/lars@aurora.pub b/common/files/keys/lars@aurora.pub
new file mode 100644
index 0000000..38a18f5
--- /dev/null
+++ b/common/files/keys/lars@aurora.pub
@@ -0,0 +1 @@
+ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEwG9nY4C3knP7ABJMsyqu9ij+tH+sL/ekGFlydugE5/ lars@aurora
diff --git a/common/handlers/main.yml b/common/handlers/main.yml
index eb32110..d4c2e73 100644
--- a/common/handlers/main.yml
+++ b/common/handlers/main.yml
@@ -18,3 +18,6 @@
 
 - name: update initramfs
   command: update-initramfs -u
+
+- name: update timezone
+  command: dpkg-reconfigure --frontend noninteractive tzdata
diff --git a/common/tasks/filesystem.yml b/common/tasks/filesystem.yml
index 10fd8e3..36988c6 100644
--- a/common/tasks/filesystem.yml
+++ b/common/tasks/filesystem.yml
@@ -2,7 +2,7 @@
 # file: roles/common/tasks/filesystem.yml
 
 - name: ensure /tmp is a tmpfs
-  mount: name=/tmp src=tmpfs fstype=tmpfs opts=nosuid,rw
+  mount: name=/tmp src=tmpfs fstype=tmpfs opts=nosuid,rw state=mounted
   tags:
     - config
     - mount
diff --git a/common/tasks/ntpd.yml b/common/tasks/ntpd.yml
index 16039fa..3898840 100644
--- a/common/tasks/ntpd.yml
+++ b/common/tasks/ntpd.yml
@@ -1,6 +1,14 @@
 ---
 # file: roles/common/tasks/ntp.yml
 
+- name: ensure correct timezone setting
+  copy: src=timezone dest=/etc/timezone owner=root group=root mode=0644
+  notify:
+    - update timezone
+  tags:
+    - config
+    - ntpd
+
 - name: ensure ntpd is installed
   apt:  name=ntp state=latest
   tags:
-- 
GitLab