PageRenderTime 20ms CodeModel.GetById 16ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/test/integration/roles/test_apt_repository/tasks/cleanup.yml

https://github.com/ajanthanm/ansible
YAML | 18 lines | 12 code | 4 blank | 2 comment | 0 complexity | 60e40d37369f0ec1964887cff5028c86 MD5 | raw file
 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
18