]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/init-system/tasks/main.yml
Fix(debian/init-system): Force notification to generate locales
[ansible.git] / playbooks / debian / roles / init-system / tasks / main.yml
index 0e1db285b0a1791b3c37918e4d0b780b50d608cc..a0527212b8e0552f42cccb4f478508a583a0de28 100644 (file)
   when: "inventory_hostname in ('localhost', 'iskra-aviel.phdru.name')"
 
 - name: Check locales
-  command: grep -c '^ru_RU.KOI8-R' /etc/locale.gen
+  shell: "grep -c '^ru_RU.KOI8-R' /etc/locale.gen || :"
   register: has_locales
 - debug:
     msg: "Creating and regenerating locales..."
+  changed_when: true # Force notification
   notify: Configure locales
   when: has_locales.stdout == "0"