From 7a1313d7f7f2593c3e93c27f2f9714b1e4711263 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sat, 15 Jan 2022 10:46:19 +0100 Subject: [PATCH] Use python3 for ansible --- ansible/hosts | 5 ++++- ansible/python.yml | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ansible/hosts b/ansible/hosts index 5e6342c..3409f94 100644 --- a/ansible/hosts +++ b/ansible/hosts @@ -9,4 +9,7 @@ # appropriate entries to /etc/hosts. [server] -loki \ No newline at end of file +loki + +[server:vars] +ansible_python_interpreter=/usr/bin/python3 diff --git a/ansible/python.yml b/ansible/python.yml index f2d21d9..0121d67 100644 --- a/ansible/python.yml +++ b/ansible/python.yml @@ -12,5 +12,5 @@ ansible_port: "{{ default_ssh_port }}" tasks: - - name: Install python2 - raw: apt-get -y install python python-pip python-setuptools + - name: Install python + raw: apt-get -y install python3 python3-pip python3-setuptools