Gitlab Community Edition installation
$ sudo apt-add-repository ppa:ansible/ansible -y -u
$ sudo apt update -y && sudo apt install ansible -y
$ sudo chown -R $USER:$USER /etc/ansible
- Gitlab dependencies installing in second and third task in first play
- cURL
- openSSH server
- CA-certificates
By default Ansible hosts (inventory) file is stored as /etc/ansible/hosts, but you can define any other file in ansible.cfg
file.
Make sure that your inventory (hosts file) is defined. Take note of variables - these also need to be defined.
- hosts: host
roles:
- { role: syzmekk.gitlab }
- gitlab.j2 - a Gitlab config file, based in /etc/gitlab as gitlab.rb. It is being set twice, because of bootstrap run.
- Playbook tested on Ubuntu xenial (16.04)
ENVIRONMENT_URL
sets an environment variable to the system, but only for current task (according to Gitlab documentation)