Browse Source

Prevent removing etcd member when running in check mode (#8570)

pull/8576/head
Ilya Margolin 2 years ago
committed by GitHub
parent
commit
f9b5e448c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions
  1. 5
      roles/remove-node/remove-etcd-node/tasks/main.yml

5
roles/remove-node/remove-etcd-node/tasks/main.yml

@ -43,11 +43,6 @@
- name: Remove etcd member from cluster
command: "{{ bin_dir }}/etcdctl member remove {{ etcd_member_id.stdout }}"
register: etcd_member_in_cluster
changed_when: false
check_mode: no
tags:
- facts
environment:
ETCDCTL_API: 3
ETCDCTL_CERT: "{{ kube_cert_dir + '/etcd/server.crt' if etcd_kubeadm_enabled else etcd_cert_dir + '/admin-' + groups['etcd']|first + '.pem' }}"

Loading…
Cancel
Save