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