siavashoutadi.git
Role Name
A role for installing and setting up Git.
Requirements
None.
Role Variables
# Git packages to be installed. By default, only 'git' is included.
# You can change this to 'git-all' if needed.
git_packages:
- git
# Git configuration settings. These can be set for the system or globally.
# The default is global.
# Example:
# git_config:
# - name: user.name
# value: My Name
# scope: global
# - name: user.email
# value: [email protected]
# scope: global
git_config: []
# The global Git configuration will be saved in the home directory of the specified user: ~/.gitconfig
git_user: root
Dependencies
None.
Example Playbook
playbook.yml
- hosts: servers
vars:
git_config:
- name: user.name
value: User1
- name: user.email
value: [email protected]
- name: alias.co
value: "checkout"
scope: "system"
- name: alias.st
value: "status"
scope: "system"
roles:
- role: siavashoutadi.git
License
Apache 2.0.
Author Information
Siavash Outadi.
Informazioni sul progetto
A role to install and configure git.
Installa
ansible-galaxy install siavashoutadi.git
Licenza
apache-2.0
Download
108
Proprietario