From 32731ff034bc6e19c289cf0d4bd7291128d234a6 Mon Sep 17 00:00:00 2001 From: "Jorge E. Gomez" Date: Tue, 29 Sep 2020 23:41:34 -0500 Subject: [PATCH] Try a different way to force Python3 in Ansible --- hosts | 4 ++-- local.yml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hosts b/hosts index 13c0639..949cc07 100644 --- a/hosts +++ b/hosts @@ -1,2 +1,2 @@ -localhost ansible_connection=local -nginx ansible_connection=lxd +localhost ansible_connection=local ansible_python_interpreter=python3 +nginx ansible_connection=lxd ansible_python_interpreter=python3 diff --git a/local.yml b/local.yml index ecc349f..ec0497c 100644 --- a/local.yml +++ b/local.yml @@ -1,6 +1,5 @@ - hosts: localhost gather_facts: no - ansible_python_interpreter: python3 tasks: - name: Verify correct usage of parameter @@ -12,7 +11,6 @@ - hosts: localhost gather_facts: yes - ansible_python_interpreter: python3 user: sistemas roles: - lxchost @@ -21,7 +19,6 @@ - hosts: nginx gather_facts: no - ansible_python_interpreter: python3 roles: - nginxproxy vars: