From 2a9e6e4282664a3eea8d67b4fdc63d4365a637bf Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 28 Mar 2019 16:08:38 -0700 Subject: [PATCH] Fix git test on FreeBSD with Python 3.x. --- test/integration/targets/git/handlers/main.yml | 11 +++++++++++ test/integration/targets/git/tasks/setup.yml | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 test/integration/targets/git/handlers/main.yml 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