mirror of https://github.com/ceph/ceph-ansible.git
Make the monitor secret a mandatory variable.
Default behavior is to fail if a variable is not declared however this can be disable in your ansible.cfg so we force this variable as mandatory. Signed-off-by: Sébastien Han <sebastien.han@enovance.com>pull/179/head
parent
5047ac7669
commit
289cc5423a
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
- name: Create monitor initial keyring
|
||||
command: "ceph-authtool /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }} --create-keyring --name=mon. --add-key={{ monitor_secret }} --cap mon 'allow *' creates=/var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}"
|
||||
command: "ceph-authtool /var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }} --create-keyring --name=mon. --add-key={{ monitor_secret | mandatory }} --cap mon 'allow *' creates=/var/lib/ceph/tmp/keyring.mon.{{ ansible_hostname }}"
|
||||
|
||||
- name: Set initial monitor key permissions
|
||||
file: >
|
||||
|
|
Loading…
Reference in New Issue