From 8e3915f5bfb5dc14fe40108c1635dabfcfaece7a Mon Sep 17 00:00:00 2001
From: Florian Ruynat <16313165+floryut@users.noreply.github.com>
Date: Wed, 9 Sep 2020 00:37:52 +0200
Subject: [PATCH] Set ansible_python_interpreter to python3 on debian (fix
 error with mitogen) (#6633)

---
 roles/bootstrap-os/tasks/bootstrap-debian.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/roles/bootstrap-os/tasks/bootstrap-debian.yml b/roles/bootstrap-os/tasks/bootstrap-debian.yml
index fa782b9cc..ca9d28c65 100644
--- a/roles/bootstrap-os/tasks/bootstrap-debian.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-debian.yml
@@ -86,6 +86,10 @@
   when:
     - need_bootstrap.rc != 0
 
+- name: Set the ansible_python_interpreter fact
+  set_fact:
+    ansible_python_interpreter: "/usr/bin/python3"
+
 # Workaround for https://github.com/ansible/ansible/issues/25543
 - name: Install dbus for the hostname module
   package:
-- 
GitLab