Skip to content

Latest commit

 

History

History
107 lines (73 loc) · 3.08 KB

File metadata and controls

107 lines (73 loc) · 3.08 KB

Ansible Role: Git Credential Manager

Tests Ansible Galaxy License

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.

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:

# 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

- hosts: servers
  roles:
    - role: gantsign.git_credential_manager

More Roles From GantSign

You can find more roles from GantSign on Ansible Galaxy.

Development & Testing

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.

License

MIT

Author Information

John Freeman

GantSign Ltd. Company No. 06109112 (registered in England)