]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
facts: use correct python interpreter
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 8 Jan 2020 13:14:41 +0000 (14:14 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 8 Jan 2020 16:18:45 +0000 (11:18 -0500)
that task is delegated on the first mon so we should always use the
`discovered_interpreter_python` from that node.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 5adb735c78767545993192c67cf12b9e03f42138)

roles/ceph-facts/tasks/facts.yml

index e112aafd8436c97cf315ca259f0316736952dc9e..65d77eaced39adb18c8009e1cfec02f38a96f6cf 100644 (file)
     - not rolling_update | bool
   block:
   - name: generate cluster fsid
-    command: "{{ discovered_interpreter_python }} -c 'import uuid; print(str(uuid.uuid4()))'"
+    command: "{{ hostvars[groups[mon_group_name][0]]['discovered_interpreter_python'] }} -c 'import uuid; print(str(uuid.uuid4()))'"
     register: cluster_uuid
     delegate_to: "{{ groups[mon_group_name][0] }}"
     run_once: true