evolinux-base: configure tzdata

This commit is contained in:
Jérémy Lecour 2016-12-28 15:06:36 +01:00 committed by Jérémy Lecour
parent 4f97f17387
commit 34669fdfd0
2 changed files with 17 additions and 0 deletions

View file

@ -53,3 +53,4 @@ evolinux_ssh_disable_root: True
evolinux_ntp_server: Null
evolinux_delete_nfs: True
evolinux_timezone: "Europe/Paris"

View file

@ -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