added allow_downgrade back

This commit is contained in:
Bertrand Lanson 2023-03-15 23:06:23 +01:00
parent a3a3d5675b
commit 0704fa8c03

View File

@ -9,6 +9,7 @@
ansible.builtin.apt: ansible.builtin.apt:
name: "{{ item.name }}{% if item.version not in [None, '', 'latest'] %}={{ item.version }}{% endif %}" name: "{{ item.name }}{% if item.version not in [None, '', 'latest'] %}={{ item.version }}{% endif %}"
state: "{{ item.state }}" state: "{{ item.state }}"
allow_downgrade: true
loop: "{{ manage_apt_packages_list }}" loop: "{{ manage_apt_packages_list }}"
when: manage_apt_packages_list is defined when: manage_apt_packages_list is defined
and manage_apt_packages_list not in [None, ''] and manage_apt_packages_list not in [None, '']