Skip to content

Commit

Permalink
Prevent removing etcd member when running in check mode (#8570)
Browse files Browse the repository at this point in the history
  • Loading branch information
fungusakafungus authored Feb 23, 2022
1 parent 3effb00 commit f9b5e44
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions roles/remove-node/remove-etcd-node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}"
Expand Down

0 comments on commit f9b5e44

Please sign in to comment.