gitconfig
ansible-role-gitconfig
This role configures git.
Requirements
Ansible 2.10 or newer.
Supported Platforms
- Debian - 11 (Bullseye)
- Debian - 12 (Bookworm)
- Ubuntu - 22.04 (Jammy Jellyfish)
- Ubuntu - 24.04 (Noble Numbat)
Role Variables
Variable | Required | Default | Choices | Comments |
---|---|---|---|---|
git_config_settings | yes | [] |
list | Settings to set. See defaults/main.yml . |
Dependencies
git
should be installed.
Example Playbook
- hosts: all
roles:
- ansible-role-gitconfig
git_config_settings:
- name: alias.ci
scope: global
value: commit
- name: alias.remotev
value: remote -v
- name: user.email
repo: /role_test
scope: local
value: root@root
Testing
molecule test
License
MIT
Author Information
Install
ansible-galaxy install boutetnico/ansible-role-gitconfig
License
mit
Downloads
19
Owner
System Engineer