]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/phd/tasks/main.yml
Feat: Use `changed_when` to avoid reporting changes
[ansible.git] / playbooks / debian / roles / phd / tasks / main.yml
index 98973042f96342b798268e71915f507ff76a0979..7ab7ba1d50574c21de7734da3b7dd3e2a5053812 100644 (file)
@@ -2,6 +2,7 @@
   command: test -f ~/.profile -a -f ~/.shellrc
   failed_when: false
   register: phd_exist
+  changed_when: phd_exist.rc != 0
 
 - debug:
     msg: "User phd has already been created"