summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/adhoc/uninstall.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/playbooks/adhoc/uninstall.yml b/playbooks/adhoc/uninstall.yml
index af2108690..7d1544be8 100644
--- a/playbooks/adhoc/uninstall.yml
+++ b/playbooks/adhoc/uninstall.yml
@@ -16,10 +16,11 @@
- name: Detecting Operating System
shell: ls /run/ostree-booted
ignore_errors: yes
+ failed_when: false
register: ostree_output
- set_fact:
- is_atomic: ostree_output.rc == 0
+ is_atomic: "{{ ostree_output.rc == 0 }}"
- service: name={{ item }} state=stopped
with_items:
@@ -41,7 +42,7 @@
- origin-node
- yum: name={{ item }} state=absent
- when: not is_atomic
+ when: not is_atomic | bool
with_items:
- atomic-enterprise
- atomic-enterprise-master