ceph-facts: generate fsid on mon node

The fsid generation is done via a python command. When the ansible
controller node only have python3 available (like RHEL 8) then the
python command isn't necessarily present causing the fsid generation
to fail.
We already do some resource creation (like ceph keyring secret) with
the python command too but from the mon node so we should do the same
for fsid.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1714631

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit daf92a9e1f)
pull/4047/head
Dimitri Savineau 2019-05-31 13:26:30 -04:00 committed by Dimitri Savineau
parent 69835e85e7
commit acef6665ca
1 changed files with 1 additions and 2 deletions

View File

@ -107,8 +107,7 @@
- name: generate cluster fsid
shell: python -c 'import uuid; print(str(uuid.uuid4()))'
register: cluster_uuid
delegate_to: localhost
become: false
delegate_to: "{{ groups[mon_group_name][0] }}"
run_once: true
- name: set_fact fsid