diff options
Diffstat (limited to 'test/integration/targets/ansible-test-git/collection-tests/uninstall-git.yml')
-rw-r--r-- | test/integration/targets/ansible-test-git/collection-tests/uninstall-git.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/targets/ansible-test-git/collection-tests/uninstall-git.yml b/test/integration/targets/ansible-test-git/collection-tests/uninstall-git.yml new file mode 100644 index 0000000..f94caea --- /dev/null +++ b/test/integration/targets/ansible-test-git/collection-tests/uninstall-git.yml @@ -0,0 +1,18 @@ +- hosts: localhost + tasks: + - name: Make sure git is uninstalled + package: + name: git + state: absent + register: git_remove + + # This gets dragged in as a dependency of git on FreeBSD. + # We need to remove it too when done. + - name: remove python37 if necessary + package: + name: python37 + state: absent + when: + - git_remove is changed + - ansible_distribution == 'FreeBSD' + - ansible_python.version.major == 2 |