tests: teach controller.yml to configure git too

pull/350/head
David Wilson 6 years ago
parent 9e572a7939
commit df112be704

@ -1,5 +1,9 @@
- hosts: controller - hosts: controller
vars:
git_username: '{{ lookup("pipe", "git config --global user.name") }}'
git_email: '{{ lookup("pipe", "git config --global user.email") }}'
tasks: tasks:
- lineinfile: - lineinfile:
line: "net.ipv4.ip_forward=1" line: "net.ipv4.ip_forward=1"
@ -32,6 +36,11 @@
- shell: "rsync -a ~/.ssh {{inventory_hostname}}:" - shell: "rsync -a ~/.ssh {{inventory_hostname}}:"
connection: local connection: local
- shell: |
git config --global user.email "{{git_username}}"
git config --global user.name "{{git_email}}"
name: set_git_config
- git: - git:
dest: ~/mitogen dest: ~/mitogen
repo: https://github.com/dw/mitogen.git repo: https://github.com/dw/mitogen.git

Loading…
Cancel
Save