X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Finit-system%2Ftasks%2Fmain.yml;h=a0527212b8e0552f42cccb4f478508a583a0de28;hb=4c466dee637d9d56f8eb51efa0ffb55fb3eb3a9a;hp=0e1db285b0a1791b3c37918e4d0b780b50d608cc;hpb=009018ea1ff7e3eab45c523559c0271850da228b;p=ansible.git diff --git a/playbooks/debian/roles/init-system/tasks/main.yml b/playbooks/debian/roles/init-system/tasks/main.yml index 0e1db28..a052721 100644 --- a/playbooks/debian/roles/init-system/tasks/main.yml +++ b/playbooks/debian/roles/init-system/tasks/main.yml @@ -31,9 +31,10 @@ 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"