2019-03-29 00:23:16 +01:00
|
|
|
- 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
|
2020-02-11 22:35:10 +01:00
|
|
|
package:
|
2019-03-29 00:23:16 +01:00
|
|
|
name: git
|
|
|
|
state: absent
|
|
|
|
autoremove: yes
|
|
|
|
when: git_install.changed and ansible_distribution == "FreeBSD"
|