Debian Codegraph @

test/integration/targets/apt/tasks/upgrade_scenarios.yml

raw
1 # See https://github.com/ansible/ansible/issues/77868
2 # fail_on_autoremove is not valid parameter for aptitude
3 - name: Use fail_on_autoremove using aptitude
4 apt:
5 upgrade: yes
6 fail_on_autoremove: yes
7 register: fail_on_autoremove_result
8
9 - name: Check if fail_on_autoremove does not fail with aptitude
10 assert:
11 that:
12 - not fail_on_autoremove_result.failed
13
14 # See https://github.com/ansible/ansible/issues/77868
15 # allow_downgrade is not valid parameter for aptitude
16 - name: Use allow_downgrade using aptitude
17 apt:
18 upgrade: yes
19 allow_downgrade: yes
20 register: allow_downgrade_result
21
22 - name: Check if allow_downgrade does not fail with aptitude
23 assert:
24 that:
25 - not allow_downgrade_result.failed