Skip to content

Commit badf3d0

Browse files
committed
Polishing some debug output and Ansible commands
1 parent c76843f commit badf3d0

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

gitlab-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- name: Add the GitLab Runner package repository
55
shell: "curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash"
66

7-
- name: Install GitLab Runner
7+
- name: Install GitLab Runner package
88
apt:
99
name: gitlab-runner
1010
state: latest

install-gitlab.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,4 @@
5050
uri:
5151
url: "{{gitlab_url}}"
5252

53-
- debug:
54-
msg: "Your Gitlab instance is ready at your Vagrant host machine https://{{gitlab_url}}"
55-
56-
5753

playbookCommands.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Prepare Gitlab on a Server (here Vagrant)
22
ansible-playbook -i hostsfile prepare-gitlab.yml
33

4+
# If https_internal_server is set to true, be sure to provide providername, providerusername & providertoken (and maybe whitelist your current Internet IP)
5+
ansible-playbook -i hostsfile prepare-gitlab.yml --extra-vars "providername=yourProviderNameHere providerusername=yourUserNameHere providertoken=yourProviderTokenHere"
6+
7+
8+
### Provision only certain steps
9+
410
# Only install Gitlab on the server (skip Docker installation)
511
ansible-playbook -i hostsfile prepare-gitlab.yml --skip-tags "install_docker"
612

prepare-gitlab.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@
3232
- name: Install & Configure Gitlab Runner for Docker
3333
include_tasks: gitlab-runner.yml
3434
tags: gitlab_runner
35+
36+
- name: Congratulations!
37+
debug:
38+
msg:
39+
- "Your Gitlab instance is ready at {{ gitlab_url }} and the Gitlab Container Registry is waiting for your docker pushes (at {{ gitlab_registry_url}})."
40+
- "Just open your Browser and login!"

0 commit comments

Comments
 (0)