The real challenge is not installing it, but configuring it properly. The official documentation is lacking some key components - in particular regarding configuring reversed proxy in webserver.
More information here
- LAMP stack
- Ansible > 2.0
- root privileges
Define those variables outside role folder:
- group_srv_domain (domain of your server)
- group_srv_admin_mail (your admin email)
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers roles: - gitea
Define hosts in hosts file. Run:
ansible-playbook -i hosts playbook.yml
ansible-playbook -i hosts playbook.yml --tag "uninstall"
to delete all files, users and groups and cronjobs created during this configuration