diff --git a/roles/baseconfig/handlers/main.yml b/roles/baseconfig/handlers/main.yml new file mode 100644 index 0000000..66c2de1 --- /dev/null +++ b/roles/baseconfig/handlers/main.yml @@ -0,0 +1,4 @@ +--- +# Reconfigure locales when conf changes +- name: Reconfigure locales + command: dpkg-reconfigure locales -f noninteractive diff --git a/roles/baseconfig/tasks/main.yml b/roles/baseconfig/tasks/main.yml index 8501e36..27fbd03 100644 --- a/roles/baseconfig/tasks/main.yml +++ b/roles/baseconfig/tasks/main.yml @@ -43,6 +43,16 @@ name: fr_FR.UTF-8 state: present +# Fix LC_CTYPE="C" +- name: Select default locale + debconf: + name: locales + question: locales/default_environment_locale + value: fr_FR.UTF-8 + vtype: select + notify: + - Reconfigure locales + # Molly-Guard : prevent accidental shutdowns - include_tasks: molly-guard.yml