From 967f7d5571e778a4d2ed4f6217c666851e3a793d Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 4 Jan 2024 15:12:58 +0100 Subject: 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 --- tasks/base.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tasks/base.yml') 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 -- cgit v1.2.3