This Ansible role installs git-daemon and sets up the directory where the mirrored repos would be stored. It is also adding a new user which will own these repositories and setting up a SSH keypair for him.
No Requirements are required for this role.
This role requires the following variables.
service_file_destination: "/etc/systemd/system/"
service_file_owner: root
service_file_group: root
service_file_mode: 0644
service_file_listen_port: 9418
repository_destination: "/var/lib/git"
repository_owner: gitmirror
repository_group: gitmirror
This role is not dependent upon any galaxy roles.
Here is a simple example of a git_mirror role:
- hosts: servers
roles:
- git_mirror
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
This is developed by Satellite QE team, irc: #robottelo on Freenode