ceph-mon: No become during gen mon initial keyring

Since the backing generate_secret() just hands out urandom output,
running as privileged doesn't seem to be required. It's not
desireable to provide sudo in some Ansible runner environments.

Signed-off-by: Jukka Nousiainen <jukka.nousiainen@csc.fi>
(cherry picked from commit eb7473491b)
pull/6118/head
Jukka Nousiainen 2020-12-02 11:07:25 +02:00 committed by Dimitri Savineau
parent 17c4744579
commit 302fa3b2f8
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@
state: generate_secret state: generate_secret
register: monitor_keyring register: monitor_keyring
delegate_to: localhost delegate_to: localhost
become: false
run_once: true run_once: true
when: when:
- initial_mon_key.skipped is defined - initial_mon_key.skipped is defined