summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-pull/setup.yml
blob: ebd5a1c08becea6d46e9e84b91c266e13d14491d (plain)
1
2
3
4
5
6
7
8
9
10
11
- hosts: localhost
  tasks:
    - name: install git
      package:
        name: git
      when: ansible_distribution not in ["MacOSX", "Alpine"]
      register: git_install
    - name: save install result
      copy:
        content: '{{ git_install }}'
        dest: '{{ lookup("env", "OUTPUT_DIR") }}/git_install.json'