---
- ansible.builtin.include_role:
    name: evolix/remount-usr

- name: select locales to be generated
  community.general.locale_gen:
    name: "{{ item }}"
    state: present
  loop:
    - "fr_FR.UTF-8"
  become: true
  notify: reconfigure locales

- name: set default locale
  ansible.builtin.lineinfile:
    dest: "/etc/default/locale"
    regexp: "^LANG="
    line: "LANG={{ locales_default }}"
  notify: reconfigure locales
