Post

Installing Gitlab CE with Ansible

Gitlab CE

Using https://github.com/geerlingguy/ansible-role-gitlab/ in order to build my own.

Change the enviroment varialbes within the defaults folder. Include cert files if you have them.

Runners

Once Gitlab is up and running, found in https://domain.com/admin, on the left hand side under CI/CD, Runners. Using the button, New Instance Runner, pick the installation that suits your method the best. When the runner is done and setup, Gitlab will give you a command that needs to be ran on the runner machine directly. A self signed cert will not work, the runner install will fail. Otherwise, follow the prompts to install.

Commands

Restart Gitlab

1
sudo gitlab-ctl restart

Status of Gitlab

1
sudo gitlab-ctl status

Restart NGINX

1
sudo gitlab-ctl restart nginx

Reconfigure Gitlab

After the gitlab.rb file has been modified, Gitlab needs to be reconfigured to see the changes. This only applies for Linux installs.

1
sudo gitlab-ctl reconfigure

Kill Components

After running the status, sometimes the components will time out. Look in the logs for timeout. Kill the service and then restart should function normally.

1
sudo gitlab-ctl kill <service>
This post is licensed under CC BY 4.0 by the author.

© . Some rights reserved.

Using the Chirpy theme for Jekyll