mirror of https://github.com/ceph/ceph-ansible.git
adopt: fix bug in mon_ip_list set_fact
`default('{}')` must be before `| from_json` Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/7084/head
parent
ddae06e1a2
commit
f30767432b
|
@ -468,7 +468,7 @@
|
||||||
- name: set_fact mon_ip_list
|
- name: set_fact mon_ip_list
|
||||||
set_fact:
|
set_fact:
|
||||||
mon_ip_list: "{{ mon_ip_list | default([]) | union([item['addr'].split(':')[0]]) }}"
|
mon_ip_list: "{{ mon_ip_list | default([]) | union([item['addr'].split(':')[0]]) }}"
|
||||||
loop: "{{ (quorum_status.stdout | from_json | default('{}'))['monmap']['mons'] }}"
|
loop: "{{ (quorum_status.stdout | default('{}') | from_json)['monmap']['mons'] }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: remove current mirror peer
|
- name: remove current mirror peer
|
||||||
|
|
Loading…
Reference in New Issue