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.
19 lines
489 B
YAML
19 lines
489 B
YAML
4 years ago
|
- hosts: localhost
|
||
|
tasks:
|
||
|
- name: Make sure git is uninstalled
|
||
|
package:
|
||
|
name: git
|
||
|
state: absent
|
||
|
register: git_remove
|
||
|
|
||
|
# This gets dragged in as a dependency of git on FreeBSD.
|
||
|
# We need to remove it too when done.
|
||
|
- name: remove python37 if necessary
|
||
|
package:
|
||
|
name: python37
|
||
|
state: absent
|
||
|
when:
|
||
|
- git_remove is changed
|
||
|
- ansible_distribution == 'FreeBSD'
|
||
|
- ansible_python.version.major == 2
|