summaryrefslogtreecommitdiffstats
path: root/playbooks
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-08-11 20:00:07 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-08-11 20:00:07 -0400
commitcd38a06539dbf9c063510761932d7a33cd68b5ee (patch)
treedf5bbe5604290d63cf8e0f6f10bd3b3d728407aa /playbooks
parentae26dfd755cc079ff90954107c9a51c51c633565 (diff)
downloadopenshift-cd38a06539dbf9c063510761932d7a33cd68b5ee.tar.gz
openshift-cd38a06539dbf9c063510761932d7a33cd68b5ee.tar.bz2
openshift-cd38a06539dbf9c063510761932d7a33cd68b5ee.tar.xz
openshift-cd38a06539dbf9c063510761932d7a33cd68b5ee.zip
Reference tmpdir from first master hostvars when evacuating nodes.
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/common/openshift-cluster/redeploy-certificates.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/playbooks/common/openshift-cluster/redeploy-certificates.yml b/playbooks/common/openshift-cluster/redeploy-certificates.yml
index 6f559badd..b97906072 100644
--- a/playbooks/common/openshift-cluster/redeploy-certificates.yml
+++ b/playbooks/common/openshift-cluster/redeploy-certificates.yml
@@ -201,7 +201,7 @@
tasks:
- name: Determine if node is currently scheduleable
command: >
- {{ openshift.common.client_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig
+ {{ openshift.common.client_binary }} --config={{ hostvars[groups.oo_first_master.0].mktemp.stdout }}/admin.kubeconfig
get node {{ openshift.common.hostname | lower }} -o json
register: node_output
when: openshift_certificates_redeploy_ca | default(false) | bool
@@ -214,7 +214,7 @@
- name: Prepare for node evacuation
command: >
- {{ openshift.common.admin_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig
+ {{ openshift.common.admin_binary }} --config={{ hostvars[groups.oo_first_master.0].mktemp.stdout }}/admin.kubeconfig
manage-node {{ openshift.common.hostname | lower }}
--schedulable=false
delegate_to: "{{ groups.oo_first_master.0 }}"
@@ -222,7 +222,7 @@
- name: Evacuate node
command: >
- {{ openshift.common.admin_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig
+ {{ openshift.common.admin_binary }} --config={{ hostvars[groups.oo_first_master.0].mktemp.stdout }}/admin.kubeconfig
manage-node {{ openshift.common.hostname | lower }}
--evacuate --force
delegate_to: "{{ groups.oo_first_master.0 }}"
@@ -230,7 +230,7 @@
- name: Set node schedulability
command: >
- {{ openshift.common.admin_binary }} --config={{ mktemp.stdout }}/admin.kubeconfig
+ {{ openshift.common.admin_binary }} --config={{ hostvars[groups.oo_first_master.0].mktemp.stdout }}/admin.kubeconfig
manage-node {{ openshift.common.hostname | lower }} --schedulable=true
delegate_to: "{{ groups.oo_first_master.0 }}"
when: openshift_certificates_redeploy_ca | default(false) | bool and was_schedulable | bool