Debian Codegraph @

test/integration/targets/ansible-galaxy-collection-scm/tasks/setup.yml

raw
1 - name: ensure git is installed
2 package:
3 name: git
4 when: ansible_distribution not in ["MacOSX", "Alpine"]
5 register: git_install
6
7 - name: set git global user.email if not already set
8 shell: git config --global user.email || git config --global user.email "[email protected]"
9
10 - name: set git global user.name if not already set
11 shell: git config --global user.name || git config --global user.name "Ansible Test Runner"
12
13 - name: Create a directory for installing collections and creating git repositories
14 file:
15 path: '{{ item }}'
16 state: directory
17 loop:
18 - '{{ install_path }}'
19 - '{{ test_repo_path }}'