Skip to content

Commit

Permalink
Use git_config module, since it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-hellings committed May 12, 2020
1 parent eb2fbbe commit 209f74a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions roles/templates/molecule/quick_mode/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
base: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}"
tasks:
- name: initialize git config
shell: |-
git config --global user.email "nobody@nowhere.com"
git config --global user.name "Automated CI"
git_config:
scope: global
state: present
name: "{{ item.key }}"
value: "{{ item.value }}"
with_dict:
user.email: nobody@nowhere.com
user.name: Automated CI

- name: create git repo
command: git init "{{ base }}/in"
Expand Down

0 comments on commit 209f74a

Please sign in to comment.