Populate /etc/timezone as well

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:28 -04:00
parent b28dc5b700
commit ce9304e43e
1 changed files with 7 additions and 1 deletions

View File

@ -305,7 +305,7 @@
- { src: "etc/locale.gen.j2", dest: "/etc/locale.gen" }
tags: base-system
- name: set timezone
- name: set timezone for /etc/localtime
file:
src: /usr/share/zoneinfo/{{ timezone_location }}
dest: /etc/localtime
@ -313,6 +313,12 @@
force: yes
tags: base-system
- name: set timezone for /etc/timezone
copy:
content: "{{ timezone_location }}"
dest: /etc/timezone
tags: base-system
- name: generate locales
command: locale-gen
tags: base-system