Use systemd module and link timezone
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
---
|
||||
- name: Reload systemd in installer environment
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Set local timezone
|
||||
ansible.builtin.command: "{{ item }}"
|
||||
loop:
|
||||
- systemctl daemon-reload
|
||||
- arch-chroot /mnt ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime
|
||||
register: configuration_timezone_result
|
||||
changed_when: configuration_timezone_result.rc == 0
|
||||
ansible.builtin.file:
|
||||
src: /usr/share/zoneinfo/Europe/Vienna
|
||||
dest: /mnt/etc/localtime
|
||||
state: link
|
||||
force: true
|
||||
|
||||
- name: Setup locales
|
||||
block:
|
||||
|
||||
Reference in New Issue
Block a user