]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/root/tasks/mc.yml
Feat: Use `changed_when` to avoid reporting changes
[ansible.git] / playbooks / debian / roles / root / tasks / mc.yml
index 36fe266db64c0acd55cc884953470a2b5399b073..655514aa69d4e9ff574f87e33014cdeafd6c557f 100644 (file)
@@ -3,6 +3,7 @@
   command: test -L ~root/.cache/mc -a -L ~root/.config/mc -a -L ~root/.local/share/mc
   failed_when: false
   register: links_exist
+  changed_when: links_exist.rc != 0
 
 - debug:
     msg: "mc links have already been created"