]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/init-system/tasks/locales.yml
Feat: Use `changed_when` to avoid reporting changes
[ansible.git] / playbooks / debian / roles / init-system / tasks / locales.yml
index 58b7aa7371020c2f5ae09531e04bf7e706f0c12b..81434078bcee66d0d8dc50e766c5fbf82ba4b7c3 100644 (file)
@@ -1,6 +1,7 @@
 - name: Check locales
   shell: "grep -c '^ru_RU.KOI8-R' /etc/locale.gen || :"
   register: has_locales
+  changed_when: has_locales.stdout == "0"
 
 - debug:
     msg: "Locales have already been configured"