This role lets you set Git config options.
Name | Required | Example | Description |
---|---|---|---|
name |
yes | user.name |
Git config option name. |
value |
yes | Stewie Griffin |
Git config option vale. |
scope |
no | global |
Git config option scope. Possible values are system and global . Defaults to system . |
conflict |
no | Eric Cartman |
Don't change the specified option, if its current value is this. |
- include_role:
name: noobient.gitconfig
vars:
name: 'user.name'
value: 'Stewie Griffin'
- include_role:
name: noobient.gitconfig
vars:
name: 'user.name'
value: 'Eric Cartman'
scope: 'global'
conflict: 'Stewie Griffin'
N/A
Platform | Support | Status |
---|---|---|
Linter | ✅ | |
AlmaLinux 8 | ✅ | |
AlmaLinux 9 | ✅ | |
Fedora 40 | ✅ | |
Fedora 41 | ✅ | |
Ubuntu 20.04 | ✅ | |
Ubuntu 22.04 | ✅ | |
Ubuntu 24.04 | ✅ |