summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-01-04 15:12:58 +0100
committerGuilhem Moulin <guilhem@fripost.org>2024-01-04 15:13:05 +0100
commit967f7d5571e778a4d2ed4f6217c666851e3a793d (patch)
treee43efe0e1a0a64f84fa4745a0c2a295016f379d4 /tasks
parent180e0b6d7927e1f74af22a7c939fe1ae84867660 (diff)
Fix timezone setting.
Use community.general.timezone, cf. https://docs.ansible.com/ansible/latest/collections/community/general/timezone_module.html#ansible-collections-community-general-timezone-module
Diffstat (limited to 'tasks')
-rw-r--r--tasks/base.yml6
1 files changed, 2 insertions, 4 deletions
diff --git a/tasks/base.yml b/tasks/base.yml
index 7086ce9..623d209 100644
--- a/tasks/base.yml
+++ b/tasks/base.yml
@@ -123,10 +123,8 @@
# Useful for `getent passwd dynamic_user`
- libnss-systemd
-- name: Set /etc/timezone
- copy: dest=/etc/timezone content="Europe/Stockholm\n"
- owner=root group=root
- mode=0644
+- name: Set timezone
+ timezone: name=Europe/Stockholm
- name: Remove ~root/.ssh/authorized_keys
file: path=/root/.ssh/authorized_keys state=absent