diff --git a/roles/ceph-common/tasks/facts.yml b/roles/ceph-common/tasks/facts.yml index 77d58df73..6d36fe58b 100644 --- a/roles/ceph-common/tasks/facts.yml +++ b/roles/ceph-common/tasks/facts.yml @@ -35,6 +35,7 @@ # We want this check to be run only on one mon - name: check if {{ fetch_directory }} directory exists local_action: stat path="{{ fetch_directory }}/monitor_keyring.conf" + become: false register: monitor_keyring_conf run_once: true @@ -71,6 +72,7 @@ - name: write initial mon keyring in {{ fetch_directory }}/monitor_keyring.conf if it doesn't exist local_action: shell echo {{ monitor_keyring.stdout }} | tee {{ fetch_directory }}/monitor_keyring.conf + become: false when: - test_initial_monitor_keyring.rc == 0