Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gantsign/ansible_role_git_credential_manager
Ansible role for installing the Git Credential Manager for Mac and Linux
https://github.com/gantsign/ansible_role_git_credential_manager
ansible ansible-role git
Last synced: 3 months ago
JSON representation
Ansible role for installing the Git Credential Manager for Mac and Linux
- Host: GitHub
- URL: https://github.com/gantsign/ansible_role_git_credential_manager
- Owner: gantsign
- License: mit
- Created: 2018-08-11T19:51:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-27T20:48:56.000Z (over 1 year ago)
- Last Synced: 2023-05-26T19:10:16.475Z (over 1 year ago)
- Topics: ansible, ansible-role, git
- Language: Shell
- Homepage: https://galaxy.ansible.com/gantsign/git_credential_manager
- Size: 115 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role: Git Credential Manager
====================================[![Tests](https://github.com/gantsign/ansible_role_git_credential_manager/workflows/Tests/badge.svg)](https://github.com/gantsign/ansible_role_git_credential_manager/actions?query=workflow%3ATests)
[![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-gantsign.git__credential__manager-blue.svg)](https://galaxy.ansible.com/gantsign/git_credential_manager)
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/gantsign/ansible_role_git_credential_manager/master/LICENSE)Role to install the [Git Credential Manager](https://github.com/git-ecosystem/git-credential-manager).
**Important:** while the Git Credential Manager works on macOS and Windows this
Ansible role only works on Debian and Ubuntu.Requirements
------------* Ansible >= 5 (Ansible Core >= 2.12)
* Linux Distribution
* Debian Family
* Debian
* Buster (10)
* Bullseye (11)* Ubuntu
* Focal (20.04)
* Jammy (22.04)Role Variables
--------------The following variables will change the behavior of this role:
```yaml
# Git Credential Manager version number
git_credential_manager_version: '2.0.935'# The SHA256 of the Git Credential Manager JAR
git_credential_manager_redis_sha256sum: 'bf788ae6d6d67b805cbc7f35f818696248b4d4f62175d19bb1a57d8d2148619b'# The credential store to use
git_credential_manager_credential_store: 'secretservice'# Directory to store files downloaded for the Git Credential Manager
git_credential_manager_download_dir: "{{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}"
```Example Playbook
----------------```yaml
- hosts: servers
roles:
- role: gantsign.git_credential_manager
```More Roles From GantSign
------------------------You can find more roles from GantSign on
[Ansible Galaxy](https://galaxy.ansible.com/gantsign).Development & Testing
---------------------This project uses [Molecule](http://molecule.readthedocs.io/) to aid in the
development and testing; the role is unit tested using
[Testinfra](http://testinfra.readthedocs.io/) and
[pytest](http://docs.pytest.org/).To develop or test you'll need to have installed the following:
* Linux (e.g. [Ubuntu](http://www.ubuntu.com/))
* [Docker](https://www.docker.com/)
* [Python](https://www.python.org/) (including python-pip)
* [Ansible](https://www.ansible.com/)
* [Molecule](http://molecule.readthedocs.io/)Because the above can be tricky to install, this project includes
[Molecule Wrapper](https://github.com/gantsign/molecule-wrapper). Molecule
Wrapper is a shell script that installs Molecule and it's dependencies (apart
from Linux) and then executes Molecule with the command you pass it.To test this role using Molecule Wrapper run the following command from the
project root:```bash
./moleculew test
```Note: some of the dependencies need `sudo` permission to install.
License
-------MIT
Author Information
------------------John Freeman
GantSign Ltd.
Company No. 06109112 (registered in England)