his Ansible role manages cloning, checking out branches or tags, and updating repositories from Git sources. It simplifies Git operations in automation workflows and is suitable for use in CI/CD pipelines, application builds, or configuration sync tasks.
This role depends on the following Ansible roles to be applied beforehand:
- A git role (e.g., geerlingguy.git) – to install and configure git
List of variables in ansible-role-build:
---
git_host: "github.com"
git_version: "HEAD"
git_repository: ""
git_destination: ""
git_force: true
git_depth: 1
git_user: "root"
git_token: ""
# linux related
git_linux_user: "{{ git_user }}"
This role depends on the following Ansible roles:
git_installer
: Installs and configures git
- hosts: servers
roles:
- geerlingguy.git
- devetek.git
GNU General Public License v3.0 or later
Nedya Prakasa. Role created for dPanel.