summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-cluster/redeploy-certificates.yml
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-01-26 19:59:05 -0500
committerGitHub <noreply@github.com>2017-01-26 19:59:05 -0500
commit3e00b0082c1af7cc77957bbad9ea514874681fb1 (patch)
tree14ccfa4385cb562ef486713ea73600458fd15f0a /playbooks/common/openshift-cluster/redeploy-certificates.yml
parent8f2b3f132bc6cd03640c31c0c33cffb01f80138c (diff)
parent31f0a163e0d970bce376fe1f75b8dcc390a162c4 (diff)
downloadopenshift-3e00b0082c1af7cc77957bbad9ea514874681fb1.tar.gz
openshift-3e00b0082c1af7cc77957bbad9ea514874681fb1.tar.bz2
openshift-3e00b0082c1af7cc77957bbad9ea514874681fb1.tar.xz
openshift-3e00b0082c1af7cc77957bbad9ea514874681fb1.zip
Merge pull request #3198 from mtnbikenc/drain-fix
Correct usage of draining nodes
Diffstat (limited to 'playbooks/common/openshift-cluster/redeploy-certificates.yml')
-rw-r--r--playbooks/common/openshift-cluster/redeploy-certificates.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/playbooks/common/openshift-cluster/redeploy-certificates.yml b/playbooks/common/openshift-cluster/redeploy-certificates.yml
index 2383836d4..a0e3f1d8a 100644
--- a/playbooks/common/openshift-cluster/redeploy-certificates.yml
+++ b/playbooks/common/openshift-cluster/redeploy-certificates.yml
@@ -228,9 +228,8 @@
- name: Drain node
command: >
- {{ openshift.common.client_binary }} adm --config={{ hostvars[groups.oo_first_master.0].mktemp.stdout }}/admin.kubeconfig
- manage-node {{ openshift.node.nodename }}
- {{ openshift.common.evacuate_or_drain }} --force
+ {{ openshift.common.admin_binary }} --config={{ hostvars[groups.oo_first_master.0].mktemp.stdout }}/admin.kubeconfig
+ drain {{ openshift.node.nodename }} --force --delete-local-data
delegate_to: "{{ groups.oo_first_master.0 }}"
when: openshift_certificates_redeploy_ca | default(false) | bool and was_schedulable | bool