playbooks/gitea
tanshu 60aed543d3 Feat:
Update gitea, otherwise it will not upgrade when new image is available
2020-10-17 12:29:19 +05:30
..
files Initial rough commit to save the code before cleanup 2020-04-03 09:24:02 +05:30
vars Feat: 2020-10-17 12:29:19 +05:30
playbook-pg.yml Gitea to listen only on host ports so as to expose ports outside only using the reverse proxy 2020-05-04 17:05:43 +05:30
playbook.yml Feat: 2020-10-17 12:29:19 +05:30
readme.md Gitea to listen only on host ports so as to expose ports outside only using the reverse proxy 2020-05-04 17:05:43 +05:30

Gitea on Ubuntu

This playbook will install Gitea on an Ubuntu 19.10 machine. A number of containers will be created with the options specified in the vars/default.yml variable file.

Settings

  • create_containers: number of containers to create.
  • default_container_name: default name for new containers.
  • default_container_image: default image for new containers.
  • default_container_command: default command to run on new containers.

Running this Playbook

Quick Steps:

1. Obtain the playbook

git clone https://github.com/do-community/ansible-playbooks.git
cd ansible-playbooks/docker_ubuntu1804

2. Customize Options

nano vars/default.yml
#vars/default.yml
---
create_containers: 4
default_container_name: docker
default_container_image: ubuntu
default_container_command: sleep 1d

3. Run the Playbook

ansible-playbook -l [target] -i [inventory file] -u [remote user] playbook.yml

For more information on how to run this Ansible setup, please check this guide: How to Use Ansible to Install and Set Up Docker on Ubuntu 18.04.