mirror of https://github.com/ceph/ceph-ansible.git
ceph-mon: Fix check mode for deploy monitor tasks
Skip the `get initial keyring when it already exists` task when both commands
whose `stdout` output it requires have been skipped (e.g. when running in check
mode).
Signed-off-by: Benoît Knecht <bknecht@protonmail.ch>
(cherry picked from commit 8f436ab5d8
)
pull/5961/head
parent
f8a64ce452
commit
9f5ec22d34
|
@ -25,6 +25,7 @@
|
||||||
- name: get initial keyring when it already exists
|
- name: get initial keyring when it already exists
|
||||||
set_fact:
|
set_fact:
|
||||||
monitor_keyring: "{{ initial_mon_key.stdout if monitor_keyring.skipped is defined else monitor_keyring.stdout if initial_mon_key.skipped is defined }}"
|
monitor_keyring: "{{ initial_mon_key.stdout if monitor_keyring.skipped is defined else monitor_keyring.stdout if initial_mon_key.skipped is defined }}"
|
||||||
|
when: initial_mon_key is not skipped or monitor_keyring is not skipped
|
||||||
|
|
||||||
- name: create monitor initial keyring
|
- name: create monitor initial keyring
|
||||||
ceph_key:
|
ceph_key:
|
||||||
|
|
Loading…
Reference in New Issue