summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-11-18 11:20:03 -0500
committerAndrew Butcher <abutcher@redhat.com>2016-11-18 11:20:03 -0500
commitfbe096eb1e1da94d0a1b9aae55c28db3277c0191 (patch)
tree6ef86ee8d8144c113eecd4705b0c88bec9aba45f
parent526a4b786c124aed2c218f434cf035133d6eb1bf (diff)
downloadopenshift-fbe096eb1e1da94d0a1b9aae55c28db3277c0191.tar.gz
openshift-fbe096eb1e1da94d0a1b9aae55c28db3277c0191.tar.bz2
openshift-fbe096eb1e1da94d0a1b9aae55c28db3277c0191.tar.xz
openshift-fbe096eb1e1da94d0a1b9aae55c28db3277c0191.zip
Allow ansible to continue when a node is unaccessible or fails.
-rw-r--r--playbooks/common/openshift-cluster/initialize_facts.yml6
-rw-r--r--roles/openshift_manage_node/tasks/main.yml1
2 files changed, 6 insertions, 1 deletions
diff --git a/playbooks/common/openshift-cluster/initialize_facts.yml b/playbooks/common/openshift-cluster/initialize_facts.yml
index 6d83d2527..18f99728c 100644
--- a/playbooks/common/openshift-cluster/initialize_facts.yml
+++ b/playbooks/common/openshift-cluster/initialize_facts.yml
@@ -1,7 +1,11 @@
---
+- name: Ensure that all non-node hosts are accessible
+ hosts: oo_masters_to_config:oo_etcd_to_config:oo_lb_to_config:oo_nfs_to_config
+ any_errors_fatal: true
+ tasks:
+
- name: Initialize host facts
hosts: oo_all_hosts
- any_errors_fatal: true
roles:
- openshift_facts
tasks:
diff --git a/roles/openshift_manage_node/tasks/main.yml b/roles/openshift_manage_node/tasks/main.yml
index 28e4e46e9..15c5ab849 100644
--- a/roles/openshift_manage_node/tasks/main.yml
+++ b/roles/openshift_manage_node/tasks/main.yml
@@ -23,6 +23,7 @@
delay: 5
changed_when: false
with_items: "{{ openshift_nodes }}"
+ when: hostvars[item].openshift.node.nodename is defined
- name: Set node schedulability
command: >