https://github.com/boutetnico/ansible-role-gitconfig
Manage git config with Ansible.
https://github.com/boutetnico/ansible-role-gitconfig
ansible config debian git git-config ubuntu
Last synced: about 2 months ago
JSON representation
Manage git config with Ansible.
- Host: GitHub
- URL: https://github.com/boutetnico/ansible-role-gitconfig
- Owner: boutetnico
- License: mit
- Created: 2020-11-02T13:00:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T08:09:32.000Z (almost 2 years ago)
- Last Synced: 2024-12-28T11:16:22.027Z (over 1 year ago)
- Topics: ansible, config, debian, git, git-config, ubuntu
- Language: Jinja
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/boutetnico/ansible-role-gitconfig/actions?query=workflow%3A%22Test+ansible+role%22)
[](https://galaxy.ansible.com/boutetnico/gitconfig)
ansible-role-gitconfig
======================
This role configures git.
Requirements
------------
Ansible 2.10 or newer.
Supported Platforms
-------------------
- [Debian - 11 (Bullseye)](https://wiki.debian.org/DebianBullseye)
- [Debian - 12 (Bookworm)](https://wiki.debian.org/DebianBookworm)
- [Ubuntu - 22.04 (Jammy Jellyfish)](http://releases.ubuntu.com/22.04/)
- [Ubuntu - 24.04 (Noble Numbat)](http://releases.ubuntu.com/24.04/)
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
------------------
[@boutetnico](https://github.com/boutetnico)