Populate /etc/timezone as well

This commit is contained in:
Joshua Boniface 2022-01-01 16:29:15 -05:00
parent 88764c44b2
commit db77d5fcdd
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