mon: fix cephx disabled deployment

Due to missing condition on `cephx` variable, cephx disabled deployments
are broken.
This commit fixes this.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1910151

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/6196/head
Guillaume Abrioux 2021-01-13 11:07:50 +01:00 committed by Dimitri Savineau
parent 6616908577
commit 4af0845702
1 changed files with 50 additions and 48 deletions

View File

@ -1,4 +1,7 @@
--- ---
- name: cephx related tasks
when: cephx | bool
block:
- name: check if monitor initial keyring already exists - name: check if monitor initial keyring already exists
ceph_key: ceph_key:
name: mon. name: mon.
@ -22,8 +25,7 @@
delegate_to: localhost delegate_to: localhost
become: false become: false
run_once: true run_once: true
when: when: initial_mon_key.skipped is defined
- initial_mon_key.skipped is defined
- name: get initial keyring when it already exists - name: get initial keyring when it already exists
set_fact: set_fact: