Florian Ruynat
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
roles/remove-node/remove-etcd-node/tasks/main.yml
|
|
@ -17,6 +17,11 @@ |
|
|
|
when: |
|
|
|
- inventory_hostname in groups['etcd'] |
|
|
|
|
|
|
|
- name: Make sure node_ip is set |
|
|
|
assert: |
|
|
|
that: node_ip is defined and node_ip | length > 0 |
|
|
|
msg: "Etcd node ip is not set !" |
|
|
|
|
|
|
|
- name: Lookup etcd member id |
|
|
|
shell: "{{ bin_dir }}/etcdctl member list | grep {{ node_ip }} | cut -d, -f1" |
|
|
|
register: etcd_member_id |
|
|
|