mirror of https://github.com/ceph/ceph-ansible.git
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
parent
69835e85e7
commit
acef6665ca
|
@ -107,8 +107,7 @@
|
||||||
- name: generate cluster fsid
|
- name: generate cluster fsid
|
||||||
shell: python -c 'import uuid; print(str(uuid.uuid4()))'
|
shell: python -c 'import uuid; print(str(uuid.uuid4()))'
|
||||||
register: cluster_uuid
|
register: cluster_uuid
|
||||||
delegate_to: localhost
|
delegate_to: "{{ groups[mon_group_name][0] }}"
|
||||||
become: false
|
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: set_fact fsid
|
- name: set_fact fsid
|
||||||
|
|
Loading…
Reference in New Issue