summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-test-git/collection-tests/uninstall-git.yml
blob: f94caea7d963d351120d3bca196cec31bcf44b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- 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