mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
469 B
YAML
17 lines
469 B
YAML
6 years ago
|
- 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
|
||
5 years ago
|
package:
|
||
6 years ago
|
name: git
|
||
|
state: absent
|
||
|
autoremove: yes
|
||
|
when: git_install.changed and ansible_distribution == "FreeBSD"
|