Skip to content

Commit

Permalink
feat(docker): add docker dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wikitops committed Aug 23, 2018
1 parent abc23ef commit 91690ad
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ runner01 running (virtualbox)

#### Deployment

This playbook has some dependencies to other roles that must be downloaded before executing the playbook :

```
ansible-galaxy install -r requirements.yml
```

This command should download the Docker role from Ansible Galaxy to the local role path.

To deploy the Gitlab Runner instance, you just have to run the Ansible playbook gitlab-runner.yml with this command :

```
Expand Down
2 changes: 1 addition & 1 deletion ansible.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ inventory = ./hosts
# gather_timeout = 10

# additional paths to search for roles in, colon separated
#roles_path = /etc/ansible/roles
roles_path = roles

# uncomment this to disable SSH key host checking
host_key_checking = False
Expand Down
8 changes: 8 additions & 0 deletions gitlab-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@
runner_registration_tags: ["dev", "docker"]
roles:
- gitlab-runner

- hosts: gitlab-runner
remote_user: vagrant
become: yes
vars:
docker_users: ["gitlab-runner", "vagrant"]
roles:
- docker
3 changes: 3 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- src: git+https://github.com/wikitops/ansible_docker
version: "1.0"
name: docker

0 comments on commit 91690ad

Please sign in to comment.