From 31f0a163e0d970bce376fe1f75b8dcc390a162c4 Mon Sep 17 00:00:00 2001 From: Russell Teague Date: Thu, 26 Jan 2017 15:25:34 -0500 Subject: Correct usage of draining nodes --- playbooks/common/openshift-cluster/redeploy-certificates.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'playbooks/common/openshift-cluster/redeploy-certificates.yml') 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 -- cgit v1.2.3