Skip to content

Commit 91690ad

Browse files
committed
feat(docker): add docker dependencies
1 parent abc23ef commit 91690ad

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ runner01 running (virtualbox)
5151

5252
#### Deployment
5353

54+
This playbook has some dependencies to other roles that must be downloaded before executing the playbook :
55+
56+
```
57+
ansible-galaxy install -r requirements.yml
58+
```
59+
60+
This command should download the Docker role from Ansible Galaxy to the local role path.
61+
5462
To deploy the Gitlab Runner instance, you just have to run the Ansible playbook gitlab-runner.yml with this command :
5563

5664
```

ansible.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ inventory = ./hosts
5555
# gather_timeout = 10
5656

5757
# additional paths to search for roles in, colon separated
58-
#roles_path = /etc/ansible/roles
58+
roles_path = roles
5959

6060
# uncomment this to disable SSH key host checking
6161
host_key_checking = False

gitlab-runner.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@
99
runner_registration_tags: ["dev", "docker"]
1010
roles:
1111
- gitlab-runner
12+
13+
- hosts: gitlab-runner
14+
remote_user: vagrant
15+
become: yes
16+
vars:
17+
docker_users: ["gitlab-runner", "vagrant"]
18+
roles:
19+
- docker

requirements.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- src: git+https://github.com/wikitops/ansible_docker
2+
version: "1.0"
3+
name: docker

0 commit comments

Comments
 (0)