From ed976dca36d9f1788e03f8c41156fb26bb626211 Mon Sep 17 00:00:00 2001 From: micafer Date: Tue, 5 Nov 2019 10:12:16 +0100 Subject: [PATCH] Enable to set ANSIBLE_VERSION env var --- contextualization/conf-ansible.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contextualization/conf-ansible.yml b/contextualization/conf-ansible.yml index e0a1a142c..37d1f406c 100644 --- a/contextualization/conf-ansible.yml +++ b/contextualization/conf-ansible.yml @@ -5,8 +5,12 @@ gather_facts: false vars: # Ansible specific Version or "latest" - ANSIBLE_VERSION: 2.6.15 + ANSIBLE_VERSION: 2.6.20 tasks: + - name: Set Ansible version from env + set_fact: ANSIBLE_VERSION={{ lookup('env','ANSIBLE_VERSION') }} + when: lookup('env','ANSIBLE_VERSION') != "" + # Some OSs does not have python by default - name: Check Python is installed raw: which python