From c3254df30df60b5635f007cb86c9a69f54a75e58 Mon Sep 17 00:00:00 2001 From: Klaus Frank <git@frank.fyi> Date: Sat, 30 Nov 2019 09:56:21 +0100 Subject: [PATCH] switch to python3 --- defaults/main.yml | 2 +- tasks/main.yml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index ec34cbf..d1e4f9f 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,3 +1,3 @@ ansible_prerequirements_packages: - - python2 + - python - lsb-release diff --git a/tasks/main.yml b/tasks/main.yml index 216b766..e12705c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -8,3 +8,10 @@ with_items: '{{ ansible_prerequirements_packages }}' register: command_res changed_when: "'there is nothing to do' not in command_res.stdout" + +- name: PREREQUIREMENTS | Gather facts + setup: null + +- name: PEREQUIREMENTS | Update inventory + set_fact: + ansible_python_interpreter: python3 -- GitLab