ansible/test/integration/targets/ansible-test/collection-tests/uninstall-git.yml
Rick Elrod 4357a78130
[ansible-test] First attempt at freebsd/11.4 (#72655)
Change:
- Try CI against freebsd 11.4

Test Plan:
- ci_complete

Tickets:
- Fixes #48782

Signed-off-by: Rick Elrod <rick@elrod.me>
2021-01-21 17:12:18 -06:00

18 lines
489 B
YAML

- 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