From 9162b79852102004088b57a418f6e280663dd77a Mon Sep 17 00:00:00 2001 From: "Jorge E. Gomez" Date: Tue, 29 Sep 2020 23:39:15 -0500 Subject: [PATCH] Error in LXD profile name. Force Python3 in Ansible --- local.yml | 5 ++++- roles/lxchost/tasks/main.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/local.yml b/local.yml index 493953d..ecc349f 100644 --- a/local.yml +++ b/local.yml @@ -1,5 +1,6 @@ - hosts: localhost - gather_facts: yes + gather_facts: no + ansible_python_interpreter: python3 tasks: - name: Verify correct usage of parameter @@ -11,6 +12,7 @@ - hosts: localhost gather_facts: yes + ansible_python_interpreter: python3 user: sistemas roles: - lxchost @@ -19,6 +21,7 @@ - hosts: nginx gather_facts: no + ansible_python_interpreter: python3 roles: - nginxproxy vars: diff --git a/roles/lxchost/tasks/main.yml b/roles/lxchost/tasks/main.yml index 077f514..ef19e78 100644 --- a/roles/lxchost/tasks/main.yml +++ b/roles/lxchost/tasks/main.yml @@ -9,7 +9,7 @@ lxd_container: name: '{{ container }}' ephemeral: no - profiles: ['odoo'] + profiles: ['odoo8'] source: type: image mode: pull