]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/root/tasks/mc.yml
Feat: Add `changed_when`
[ansible.git] / playbooks / debian / roles / root / tasks / mc.yml
index ec8052308c4f808397fb43f591ce2b20c19ca81f..332015ef7d3facd2480290e9d892eaca816480ac 100644 (file)
@@ -3,6 +3,7 @@
   stat:
     path: "{{ item }}"
   register: links_exist
+  changed_when: not links_exist.stat.exists
   loop: ['~root/.cache/mc', '~root/.config/mc', '~root/.local/share/mc']
 
 - debug: