From 681663962ea12c17f8cdc1809419f216d27ce826 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 9 Sep 2021 16:48:10 -0400 Subject: [PATCH] chacra-pull-requests: Now set the ansible interpreter Signed-off-by: David Galloway --- chacra-pull-requests/setup/playbooks/tasks/postgresql.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- 2.39.5