Skip to content

Ansible role to clone or checkout git repository from any providers such as: bitbucket, gitlab, github, gitea, etc

Notifications You must be signed in to change notification settings

devetek/ansible-role-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role: Git

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.

Requirements

This role depends on the following Ansible roles to be applied beforehand:

Role Variables

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 }}"

Dependencies

This role depends on the following Ansible roles:

  • git_installer: Installs and configures git

Example Playbook

- hosts: servers
  roles:
    - geerlingguy.git
    - devetek.git

License

GNU General Public License v3.0 or later

Author Information

Nedya Prakasa. Role created for dPanel.

About

Ansible role to clone or checkout git repository from any providers such as: bitbucket, gitlab, github, gitea, etc

Topics

Resources

Stars

Watchers

Forks