diff --git a/test/integration/targets/git/handlers/main.yml b/test/integration/targets/git/handlers/main.yml new file mode 100644 index 0000000000..a96627adc9 --- /dev/null +++ b/test/integration/targets/git/handlers/main.yml @@ -0,0 +1,11 @@ +- name: remove git + package: + name: git + state: absent + +- name: remove git from FreeBSD + pkgng: + name: git + state: absent + autoremove: yes + when: ansible_distribution == "FreeBSD" diff --git a/test/integration/targets/git/tasks/setup.yml b/test/integration/targets/git/tasks/setup.yml index 8fdb2a401c..f5f416b4d8 100644 --- a/test/integration/targets/git/tasks/setup.yml +++ b/test/integration/targets/git/tasks/setup.yml @@ -12,6 +12,9 @@ package: name: git when: ansible_distribution != "MacOSX" + notify: + - remove git + - remove git from FreeBSD - name: SETUP | verify that git is installed so this test can continue shell: which git