https://github.com/uvsmtid/ansible_git_client_role
Ansible role for Git client
https://github.com/uvsmtid/ansible_git_client_role
ansible ansible-galaxy ansible-role git git-config
Last synced: about 2 months ago
JSON representation
Ansible role for Git client
- Host: GitHub
- URL: https://github.com/uvsmtid/ansible_git_client_role
- Owner: uvsmtid
- License: apache-2.0
- Created: 2018-05-05T08:55:35.000Z (about 8 years ago)
- Default Branch: develop
- Last Pushed: 2023-04-30T05:49:21.000Z (about 3 years ago)
- Last Synced: 2025-03-21T06:29:34.318Z (over 1 year ago)
- Topics: ansible, ansible-galaxy, ansible-role, git, git-config
- Homepage: https://galaxy.ansible.com/uvsmtid/git_client_role
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible role for Git client:
https://galaxy.ansible.com/uvsmtid/git_client_role/
## Description ##
Role configures Git client.
Git config for author name and email is factored out into separate files:
* `~/.gitconfig.author` for user-only config
* `/etc/gitconfig.author` for system-wide config
When `set_author_git_config` variable set to `True`,
author name and email are automatically configured based on role variables (below).
When `is_regular_user_only` variable set to `True`,
system-wide configuration is **not** applied and package installation is not performed
(useful to avoid requirement for elevated permissions).
## Role variables ##
Override author name and email (e.g. in `git_client_role.yaml`):
```
git_client_config:
git_name: Yolanda Wrorfush
git_email: yolanda.wrorfush@example.com
```
## Example Playbook ##
Playbook using `git_client_role.yaml`:
```
---
- hosts: all
vars_files:
- git_client_config.yaml
tasks:
- import_role:
name: uvsmtid.git_client_role
```
## License ##
[Apache][1]
---
[1]: LICENSE