Browse Source

Make sure node_ip is set if node is in etcd group (#6720)

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

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

@ -21,6 +21,8 @@
assert:
that: node_ip is defined and node_ip | length > 0
msg: "Etcd node ip is not set !"
when:
- inventory_hostname in groups['etcd']
- name: Lookup etcd member id
shell: "{{ bin_dir }}/etcdctl member list | grep {{ node_ip }} | cut -d, -f1"

Loading…
Cancel
Save