]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
chacra-pull-requests: Now set the ansible interpreter 1905/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 9 Sep 2021 20:48:10 +0000 (16:48 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Thu, 9 Sep 2021 20:48:10 +0000 (16:48 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
chacra-pull-requests/setup/playbooks/tasks/postgresql.yml

index d18d13aada9ceb2cb3e6129ada405c50325ca05d..cdbe60de300c48e2b8334d607ab2ba21156b58b9 100644 (file)
      line: 'host    all             all             0.0.0.0/0            trust'
   register: pg_hba_conf
 
+# This is the only task that actually cares about the python interpreter so we set it here
+- set_fact:
+    ansible_python_interpreter: "/usr/bin/python3"
+  when:
+    - python_version is defined
+    - python_version == "3"
+
 - name: make jenkins-build user
   postgresql_user:
     name: "jenkins-build"