Only set git config during test if unset.

This makes the git test less destructive.
pull/20695/head
Matt Clay 8 years ago
parent 2750fc0c7f
commit 5d5e5e25a2

@ -21,8 +21,11 @@
shell: gpg --version 2>1 | head -1 | sed -e 's/gpg (GnuPG) //'
register: gpg_version
- name: set dummy git config
shell: git config --global user.email "noreply@example.com"; git config --global user.name "Ansible Test Runner"
- name: set git global user.email if not already set
shell: git config --global user.email || git config --global user.email "noreply@example.com"
- name: set git global user.name if not already set
shell: git config --global user.name || git config --global user.name "Ansible Test Runner"
- name: create repo_dir
file: path={{repo_dir}} state=directory

Loading…
Cancel
Save