mirror of https://github.com/ansible/ansible.git
Support ansible-galaxy test on FreeBSD Python 3.x.
parent
7c57caf8fa
commit
86268b09a1
@ -0,0 +1,16 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
vars:
|
||||||
|
git_install: '{{ lookup("file", lookup("env", "OUTPUT_DIR") + "/git_install.json") | from_json }}'
|
||||||
|
tasks:
|
||||||
|
- name: remove unwanted packages
|
||||||
|
package:
|
||||||
|
name: git
|
||||||
|
state: absent
|
||||||
|
when: git_install.changed
|
||||||
|
|
||||||
|
- name: remove auto-installed packages from FreeBSD
|
||||||
|
pkgng:
|
||||||
|
name: git
|
||||||
|
state: absent
|
||||||
|
autoremove: yes
|
||||||
|
when: git_install.changed and ansible_distribution == "FreeBSD"
|
Loading…
Reference in New Issue