summaryrefslogtreecommitdiffstats
path: root/playbooks/common
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-01-18 10:29:48 -0500
committerAndrew Butcher <abutcher@redhat.com>2016-01-18 10:29:48 -0500
commitcc7b1a3f585a86c21eb88d850d963148b98c9f23 (patch)
tree77d24140ce86526a75c54f4cc87fafd499894d1f /playbooks/common
parent03ab833e0107990017306dca04e094e1de5a39fb (diff)
downloadopenshift-cc7b1a3f585a86c21eb88d850d963148b98c9f23.tar.gz
openshift-cc7b1a3f585a86c21eb88d850d963148b98c9f23.tar.bz2
openshift-cc7b1a3f585a86c21eb88d850d963148b98c9f23.tar.xz
openshift-cc7b1a3f585a86c21eb88d850d963148b98c9f23.zip
Fix cluster_method conditional in master restart playbook.
Diffstat (limited to 'playbooks/common')
-rw-r--r--playbooks/common/openshift-master/restart.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/playbooks/common/openshift-master/restart.yml b/playbooks/common/openshift-master/restart.yml
index 987fae63c..5c8e34817 100644
--- a/playbooks/common/openshift-master/restart.yml
+++ b/playbooks/common/openshift-master/restart.yml
@@ -73,12 +73,12 @@
command: >
systemctl is-active {{ openshift.common.service_type }}-master
register: active_check_output
- when: openshift.master.cluster_method == 'pacemaker'
+ when: openshift.master.cluster_method | default(None) == 'pacemaker'
failed_when: active_check_output.stdout not in ['active', 'inactive']
changed_when: false
- set_fact:
is_active: "{{ active_check_output.stdout == 'active' }}"
- when: openshift.master.cluster_method == 'pacemaker'
+ when: openshift.master.cluster_method | default(None) == 'pacemaker'
- name: Evaluate master groups
hosts: localhost