]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/phd/tasks/main.yml
Refactor(add_apache_vhost): Split `tasks/main`
[ansible.git] / playbooks / debian / roles / phd / tasks / main.yml
index 455605f45225f57ee9cd14ba4ef9505991f20cce..7ab7ba1d50574c21de7734da3b7dd3e2a5053812 100644 (file)
@@ -1,7 +1,8 @@
 - name: Test if user phd already exists
   command: test -f ~/.profile -a -f ~/.shellrc
-  ignore_errors: true
+  failed_when: false
   register: phd_exist
+  changed_when: phd_exist.rc != 0
 
 - debug:
     msg: "User phd has already been created"