Skip to content

Instantly share code, notes, and snippets.

@allgood2386
Created July 11, 2014 16:02
Show Gist options
  • Save allgood2386/f75426e4960c16c592d4 to your computer and use it in GitHub Desktop.
Save allgood2386/f75426e4960c16c592d4 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