From: David Galloway Date: Thu, 9 Sep 2021 20:48:10 +0000 (-0400) Subject: chacra-pull-requests: Now set the ansible interpreter X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1905%2Fhead;p=ceph-build.git chacra-pull-requests: Now set the ansible interpreter Signed-off-by: David Galloway --- diff --git a/chacra-pull-requests/setup/playbooks/tasks/postgresql.yml b/chacra-pull-requests/setup/playbooks/tasks/postgresql.yml index d18d13aa..cdbe60de 100644 --- a/chacra-pull-requests/setup/playbooks/tasks/postgresql.yml +++ b/chacra-pull-requests/setup/playbooks/tasks/postgresql.yml @@ -55,6 +55,13 @@ 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"