amtega.gitlab_fork
Amtega gitlab_fork Role
This is an Ansible role to manage a fork of a GitLab project.
Role Variables
You can find a list of all the default variables for this role in defaults/main.yml
.
The role sets up the following information:
gitlab_fork_fact
: a dictionary that contains the result of the fork process.
Example Playbook
Here’s an example playbook:
---
- hosts: localhost
roles:
- amtega.gitlab_fork
vars:
gitlab_fork_project_path: /myproject
gitlab_fork_allow_duplicated: no
Testing
Testing is done using molecule with Docker containers.
To run tests, you need to provide the variables defined in defaults/main.yml
. The required variables to run the tests are:
ANSIBLE_INVENTORY
: the path to an inventory file that provides the variables needed by the roleANSIBLE_VAULT_PASSWORD_FILE
: the path to the file with the vault password needed for the inventory (optional)
cd amtega.gitlab_fork
ANSIBLE_INVENTORY=~/myinventory ANSIBLE_VAULT_PASSWORD_FILE=~/myvaultpassword 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 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 shared with the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License or the European Union Public License for more details.
Author Information
- Juan Antonio Valiño García.
ansible-galaxy install amtega.gitlab_fork