Debian Codegraph @

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

raw
1 - block:
2 - name: Clean up before running tests
3 apt:
4 name:
5 - packageone
6 - packagetwo
7 state: absent
8
9 - name: Install packageone from deb URL
10 apt:
11 deb: https://ci-files.testing.ansible.com/test/integration/targets/apt/packageone_1.0_all.deb
12 register: packageone_installed
13
14 - name: Check if packagetwo is installed as part of packageone installation
15 shell: dpkg -s packagetwo
16
17 - name: Check if packageone and packagetwo are marked as auto
18 shell: apt-mark showauto packageone packagetwo
19 register: auto_installed
20
21 - name: Make sure packageone is installed manually and packagetwo is marked as auto
22 assert:
23 that:
24 - packageone_installed.changed
25 - auto_installed.stdout_lines == ["packagetwo"]
26
27 always:
28 - name: Clean up after tests
29 apt:
30 name:
31 - packageone
32 - packagetwo
33 state: absent