From: Jukka Nousiainen Date: Wed, 2 Dec 2020 09:07:25 +0000 (+0200) Subject: ceph-mon: No become during gen mon initial keyring X-Git-Tag: v5.0.4~47 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=302fa3b2f8d57200cc66bcd7d9bd7ec3a5635f80;p=ceph-ansible.git 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 (cherry picked from commit eb7473491b25c5f899a110f6ae1076ef5096d6d5) --- diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index ea93734a3..2067ef67a 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -19,6 +19,7 @@ state: generate_secret register: monitor_keyring delegate_to: localhost + become: false run_once: true when: - initial_mon_key.skipped is defined