diff --git a/contextualization/conf-ansible.yml b/contextualization/conf-ansible.yml index f148c7fb..49381539 100644 --- a/contextualization/conf-ansible.yml +++ b/contextualization/conf-ansible.yml @@ -5,7 +5,7 @@ gather_facts: false vars: # Ansible specific Version or "latest" - ANSIBLE_VERSION: 2.9.26 + ANSIBLE_VERSION: 4.10.0 tasks: - name: Set Ansible version from env if defined set_fact: ANSIBLE_VERSION={{ lookup('env','ANSIBLE_VERSION') }} @@ -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 diff --git a/docker-devel/Dockerfile b/docker-devel/Dockerfile index e4dbc772..3c0a7dea 100644 --- a/docker-devel/Dockerfile +++ b/docker-devel/Dockerfile @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y python3 python3 # Install IM RUN apt-get update && apt-get install --no-install-recommends -y python3-setuptools python3-pip git && \ pip3 install msrest msrestazure azure-common azure-mgmt-storage azure-mgmt-compute azure-mgmt-network azure-mgmt-resource azure-mgmt-dns azure-identity==1.8.0 && \ - pip3 install pyOpenSSL cheroot xmltodict pymongo ansible==6.4.0&& \ + pip3 install pyOpenSSL cheroot xmltodict pymongo ansible==6.7.0&& \ pip3 install urllib3==1.26.18 git+https://github.com/grycap/im@$BRANCH && \ apt-get purge -y python3-pip git && \ apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf ~/.cache/ diff --git a/docker-py3/Dockerfile b/docker-py3/Dockerfile index b68a7479..37eba3f2 100644 --- a/docker-py3/Dockerfile +++ b/docker-py3/Dockerfile @@ -12,7 +12,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y python3 python3 # Install IM RUN apt-get update && apt-get install --no-install-recommends -y python3-setuptools python3-pip git && \ pip3 install msrest msrestazure azure-common azure-mgmt-storage azure-mgmt-compute azure-mgmt-network azure-mgmt-resource azure-mgmt-dns azure-identity==1.8.0 && \ - pip3 install pyOpenSSL cheroot xmltodict pymongo ansible==6.4.0&& \ + pip3 install pyOpenSSL cheroot xmltodict pymongo ansible==6.7.0&& \ pip3 install urllib3==1.26.18 IM==1.16.0 && \ apt-get purge -y python3-pip git && \ apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && rm -rf ~/.cache/