]> git.phdru.name Git - ansible.git/commitdiff
Fix: Use `failed_when` instead of `ignore_errors`
authorOleg Broytman <phd@phdru.name>
Sun, 21 Jul 2019 14:14:26 +0000 (17:14 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 21 Jul 2019 14:14:26 +0000 (17:14 +0300)
playbooks/ansible/cleanup-tmp.yml
playbooks/debian/roles/phd/tasks/main.yml
playbooks/roles/debian/remove-systemd/tasks/main.yml
playbooks/roles/debian/remove-systemd/tasks/remove-systemd.yml

index 2b46a32f559e7ed9beac9b1070c7ddfe825c6546..8140c85c522c7924002ec241b98beade0a1e3f6c 100644 (file)
@@ -6,4 +6,4 @@
       command: "rm -rf ~/.ansible/tmp/*"
       args:
         warn: false
-      ignore_errors: true
+      failed_when: false
index 455605f45225f57ee9cd14ba4ef9505991f20cce..98973042f96342b798268e71915f507ff76a0979 100644 (file)
@@ -1,6 +1,6 @@
 - name: Test if user phd already exists
   command: test -f ~/.profile -a -f ~/.shellrc
-  ignore_errors: true
+  failed_when: false
   register: phd_exist
 
 - debug:
index f0dd1d631cb2b8ed9cbeff5ff08e8d8d6d649401..2c7b9096e3e17798ad9c06178039d48f44bf1453 100644 (file)
@@ -31,7 +31,6 @@
 - name: Purge SystemD
   become: true
   import_tasks: remove-systemd.yml
-  ignore_errors: true
 
 - name: Reboot if SystemD is still active
   become: true
index dbc493df45da477036ec8018828d5c3410340f0d..13b0488b15b88c25a9c26ebbc9d47fe7160724cc 100644 (file)
@@ -8,4 +8,5 @@
     purge: yes
     state: absent
     update_cache: no
+  failed_when: false
   register: purged