]> git.phdru.name Git - ansible.git/blob - playbooks/debian/roles/init-system/tasks/locales.yml
77adf741bae3f7072ee242a9aeec8f73ed402e48
[ansible.git] / playbooks / debian / roles / init-system / tasks / locales.yml
1 - name: Check locales
2   shell: "grep -c '^ru_RU.KOI8-R' /etc/locale.gen || :"
3   register: has_locales
4
5 - debug:
6     msg: "Creating and regenerating locales..."
7   changed_when: true # Force notification
8   notify: Configure locales
9   when: has_locales.stdout == "0"
10
11 - debug:
12     msg: "Locales has already been created"
13   when: has_locales.stdout != "0"