Fix git test on FreeBSD with Python 3.x.

This commit is contained in:
Matt Clay 2019-03-28 16:08:38 -07:00
parent 2434abaaf7
commit 2a9e6e4282
2 changed files with 14 additions and 0 deletions

View file

@ -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"

View file

@ -12,6 +12,9 @@
package: package:
name: git name: git
when: ansible_distribution != "MacOSX" when: ansible_distribution != "MacOSX"
notify:
- remove git
- remove git from FreeBSD
- name: SETUP | verify that git is installed so this test can continue - name: SETUP | verify that git is installed so this test can continue
shell: which git shell: which git