git
ANSIBLE-ROLE-GIT
Ansible role install Git
Howto use this role?
This role need to be include in a playbook.
Call this Galaxy role like this:
ansible-galaxy install -r requirements.yml
Inside requirements.yml
# from GitHub, overriding the name and specifying a specific tag
- src: git+https://github.com/redbeard28/ansible-role-git.git
version: master
name: git
or
- src: redbeard28.git
More info => Ansible Docs
Requirements
- Ansible 2.9+
Role Variables
---
# none
Dependencies
- redbeard28.bootstrap
Example Playbook
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: all
roles:
- { role: redbeard28.git, tags: mytags }
Molecule testing framework
You can use molecule to test this role.
namespace=redbeard28 image=debian tag="buster-basetools" molecule converge
namespace=redbeard28 image=debian tag="buster-basetools" molecule verify
namespace=redbeard28 image=debian tag="buster-basetools" molecule lint
or
namespace=redbeard28 image=debian tag="buster-basetools" molecule test
Author Information
Jeremie CUADRADO¹ from Redbeard-Consulting
Install
ansible-galaxy install redbeard28/ansible-role-git
License
Unknown
Downloads
98
Owner