From 56ec609d4de9be4ad213472611afeee67d32d110 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Thu, 2 May 2024 10:57:50 +0200 Subject: [PATCH] Upgrade default ansible version --- contextualization/conf-ansible.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contextualization/conf-ansible.yml b/contextualization/conf-ansible.yml index f1dc5a82..49381539 100644 --- a/contextualization/conf-ansible.yml +++ b/contextualization/conf-ansible.yml @@ -167,6 +167,13 @@ executable: pip3 extra_args: "{{ extra_args }}" + - name: Set Ansible newer version for python 3.12 + set_fact: + ANSIBLE_VERSION: 6.7.0 + when: + - ansible_python_version is version('3.12', '>=') + - ANSIBLE_VERSION is version('6.7.0', '<') + - name: Install ansible {{ ANSIBLE_VERSION }} with Pip pip: name: ansible