Skip to content

Instantly share code, notes, and snippets.

@tgerla
Forked from allgood2386/main.yml
Created July 11, 2014 16:11
Show Gist options
  • Save tgerla/3052202f747e3149f8b2 to your computer and use it in GitHub Desktop.
Save tgerla/3052202f747e3149f8b2 to your computer and use it in GitHub Desktop.
---
- name: Ensure git is installed (Debian).
apt: name={{ item }} state=installed
with_items: git_packages
# Install git from source when git_install_from_source is true.
- include: install-from-source.yml
when: git_install_from_source == true
- name: Set user variable.
command: git config --global user.email "{{ git_user }}"
user: "{{ git_user }}"
- name: Set email variable.
command: git config --global user.mail {{ git_mail }}
- name: Set global file mode.
command: git config --global core.filemode {{ git_filemode }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment