-
-
Save tgerla/3052202f747e3149f8b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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