mirror of https://github.com/ansible/ansible.git
Split up platform cleanup in tests. (#67320)
* Split up platform cleanup for git test. * Split up platform cleanup for ansible-galaxy test.pull/67323/head
parent
a0247d13d8
commit
a3b7d67fb0
@ -0,0 +1,5 @@
|
||||
- name: remove unwanted packages
|
||||
package:
|
||||
name: git
|
||||
state: absent
|
||||
when: git_install.changed
|
@ -0,0 +1,6 @@
|
||||
- name: remove auto-installed packages from FreeBSD
|
||||
pkgng:
|
||||
name: git
|
||||
state: absent
|
||||
autoremove: yes
|
||||
when: git_install.changed
|
@ -0,0 +1,6 @@
|
||||
# TODO remove everything we'd installed (see git_required_packages), not just git
|
||||
# problem is that we should not remove what we hadn't installed
|
||||
- name: remove git
|
||||
package:
|
||||
name: git
|
||||
state: absent
|
@ -0,0 +1,5 @@
|
||||
- name: remove git fromn FreeBSD
|
||||
pkgng:
|
||||
name: git
|
||||
state: absent
|
||||
autoremove: yes
|
@ -1,13 +1,7 @@
|
||||
# TODO remove everything we'd installed (see git_required_packages), not just git
|
||||
# problem is that we should not remove what we hadn't installed
|
||||
- name: remove git
|
||||
package:
|
||||
name: git
|
||||
state: absent
|
||||
|
||||
- name: remove git from FreeBSD
|
||||
pkgng:
|
||||
name: git
|
||||
state: absent
|
||||
autoremove: yes
|
||||
when: ansible_distribution == "FreeBSD"
|
||||
- name: cleanup
|
||||
include_tasks: "{{ cleanup_filename }}"
|
||||
with_first_found:
|
||||
- "cleanup-{{ ansible_distribution | lower }}.yml"
|
||||
- "cleanup-default.yml"
|
||||
loop_control:
|
||||
loop_var: cleanup_filename
|
||||
|
Loading…
Reference in New Issue