Debian Codegraph @

test/integration/targets/apt_repository/tasks/cleanup.yml

raw
1 ---
2 # tasks to cleanup a repo and assert it is gone
3
4 - name: remove existing ppa
5 apt_repository: repo={{test_ppa_name}} state=absent
6 ignore_errors: true
7
8 - name: test that ppa does not exist (expect pass)
9 shell: cat /etc/apt/sources.list /etc/apt/sources.list.d/* | grep "{{test_ppa_spec}}"
10 register: command
11 failed_when: command.rc == 0
12 changed_when: false
13
14 # Should this use apt-key, maybe?
15 - name: remove ppa key
16 apt_key: id={{test_ppa_key}} state=absent
17 ignore_errors: true