Member-only story
Checkout git repository via HTTPS— Ansible module git
How to checkout a git repository using Ansible module git with some Ansible Playbook example and live demo.
3 min readAug 12, 2021
How to Checkout git repository?
I’m going to show you a live demo with some simple Ansible code.
I’m Luca Berton and welcome to today’s episode of Ansible Pilot
Ansible checkout git repository
Today we’re talking about Ansible module git.
The full name is ansible.builtin.git which means is part of the collection of modules “builtin” with ansible and shipped with it.
This module is pretty stable and out for years.
The purpose is to Deploy software (or files) from git checkouts in our managed hosts.
Parameters and Return Values
- repo path