Role to install the Git Credential Manager.
Important: while the Git Credential Manager works on macOS and Windows this Ansible role only works on Debian and Ubuntu.
-
Ansible >= 5 (Ansible Core >= 2.12)
-
Linux Distribution
-
Debian Family
-
Debian
- Buster (10)
- Bullseye (11)
-
Ubuntu
- Focal (20.04)
- Jammy (22.04)
-
-
The following variables will change the behavior of this role:
# 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') }}"
- hosts: servers
roles:
- role: gantsign.git_credential_manager
You can find more roles from GantSign on Ansible Galaxy.
This project uses Molecule to aid in the development and testing; the role is unit tested using Testinfra and pytest.
To develop or test you'll need to have installed the following:
Because the above can be tricky to install, this project includes 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:
./moleculew test
Note: some of the dependencies need sudo
permission to install.
MIT
John Freeman
GantSign Ltd. Company No. 06109112 (registered in England)