]> 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 15:06:43 +0000 (10:06 -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>
roles/ceph-facts/tasks/facts.yml

index 1b9a4b72bfd5293234b09b474d5edeec6e2286cc..ff5375458c0cfe74a725f609c7a6b2141973d0b0 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