aboutsummaryrefslogtreecommitdiffstats
path: root/roles/_workstation/sysconf
diff options
context:
space:
mode:
Diffstat (limited to 'roles/_workstation/sysconf')
-rw-r--r--roles/_workstation/sysconf/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/_workstation/sysconf/tasks/main.yml b/roles/_workstation/sysconf/tasks/main.yml
index 0f37962..0f61550 100644
--- a/roles/_workstation/sysconf/tasks/main.yml
+++ b/roles/_workstation/sysconf/tasks/main.yml
@@ -25,13 +25,13 @@
- name: check sudo binary path
shell: which sudo
- register: sudo
- ignore_errors: true
+ register: result
+ failed_when: result.rc | string not in "02"
- name: uninstall sudo binary
package:
name: sudo
state: absent
- when: sudo.rc == 0
+ when: result.rc == 0
register: sudo
ignore_errors: true
remember that computers suck.