From daf92a9e1f8ed14e03e20a4d908f49c411eb8887 Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Fri, 31 May 2019 13:26:30 -0400 Subject: [PATCH] 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 --- roles/ceph-facts/tasks/facts.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index f21aad864..9ef94eb8f 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -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