amtega.git_clone

Amtega git_clone Role

This is an Ansible role designed to clone a git repository.

This role can work together with the amtega.gitlab_fork role to help pull updates from the upstream/master into the cloned project. Check the role variables for more information.

Role Variables

You can find a list of default variables for this role in defaults/main.yml.

The role sets up the following information:

  • git_clone_branch_name: A string that shows the name of the branch created (useful when it is generated randomly).

Example Playbook

Here is an example playbook:

---
- hosts: localhost
  roles:  
    - amtega.git_clone
  vars:    
    git_clone_repo: https://github.com/ansible/ansible.git
    git_clone_dest: /tmp/ansible

Testing

Tests are done using molecule with docker containers.

cd amtega.git_clone

molecule test --all

License

Copyright (C) 2022 AMTEGA - Xunta de Galicia

This role is free software: you can share it and/or change it under the terms of:

GNU General Public License version 3, or (if you prefer) any later version; or the European Union Public License, either Version 1.2 or any later versions approved by the European Commission.

This role is provided with the hope that it will be helpful, but WITHOUT ANY WARRANTY; not even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License or European Union Public License for more details.

Author Information

  • Juan Antonio Valiño García.
Informazioni sul progetto

Clone a git repository

Installa
ansible-galaxy install amtega.git_clone
Licenza
gpl-3.0
Download
77
Proprietario
Agency for Technological Modernization of Galicia