evolinux-base: configure tzdata
This commit is contained in:
parent
4f97f17387
commit
34669fdfd0
|
@ -53,3 +53,4 @@ evolinux_ssh_disable_root: True
|
|||
|
||||
evolinux_ntp_server: Null
|
||||
evolinux_delete_nfs: True
|
||||
evolinux_timezone: "Europe/Paris"
|
||||
|
|
|
@ -29,6 +29,22 @@
|
|||
command: /usr/sbin/locale-gen
|
||||
when: default_locales | changed
|
||||
|
||||
- name: Setting default timezone
|
||||
lineinfile:
|
||||
dest: /etc/timezone
|
||||
regexp: '^\w+/\w+$'
|
||||
line: "{{ evolinux_timezone | mandatory }}"
|
||||
insertbefore: BOF
|
||||
create: yes
|
||||
register: change_timezone
|
||||
|
||||
- name: Reconfigure tzdata
|
||||
command: dpkg-reconfigure --frontend noninteractive tzdata
|
||||
when: change_timezone | changed
|
||||
|
||||
# TODO : find a way to force the console-data configuration
|
||||
# non-interactively (like tzdata ↑)
|
||||
|
||||
- name: Setting vim as default editor
|
||||
alternatives:
|
||||
name: editor
|
||||
|
|
Loading…
Reference in a new issue