diff options
author | pmikus <pmikus@cisco.com> | 2021-03-22 08:46:04 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-03-22 09:03:17 +0000 |
commit | 3402c93328d877ef09a026f5a491eabd34f8bc1e (patch) | |
tree | 7948ecd2413383669b9f1703b7c80d7f68f89cf1 /resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml | |
parent | 026d128b96a386781733961edbf26ba197530954 (diff) |
Infra: Ansible sync
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I4b1516a957447b8356949626e385b9317ed1933c
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml b/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml index 0c8816fe29..302b43c99a 100644 --- a/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml +++ b/resources/tools/testbed-setup/ansible/roles/cleanup/tasks/remove_package.yaml @@ -1,19 +1,21 @@ --- # file: roles/cleanup/tasks/remove_package.yaml -- name: Remove package - Fix corrupted apt - shell: 'dpkg --configure -a' - when: > - ansible_distribution == 'Ubuntu' - tags: remove-package +- name: Remove Package - Fix Corrupted APT + shell: "dpkg --configure -a" + when: + - ansible_distribution == 'Ubuntu' + tags: + - remove-package -- name: Remove package - {{ package }} +- name: Remove Package - {{ package }} apt: - name: '{{ package }}' + name: "{{ package }}" force: yes purge: yes - state: absent + state: "absent" failed_when: no - when: > - ansible_distribution == 'Ubuntu' - tags: remove-package + when: + - ansible_distribution == 'Ubuntu' + tags: + - remove-package |