From 0292f8db93392f6e1ea3ce8aadae09abc0f0b134 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Thu, 21 Jul 2022 23:22:14 -0500 Subject: [PATCH] Add a GitLab runner to vm-general-1 This is weird This is going to immediately trigger a pipeline in GitLab, which will immediately use this runner I love technology --- playbooks/prod_web.yml | 1 + playbooks/tasks/app/gitlab-runner.yml | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 playbooks/tasks/app/gitlab-runner.yml diff --git a/playbooks/prod_web.yml b/playbooks/prod_web.yml index 2bc334f..66b4295 100755 --- a/playbooks/prod_web.yml +++ b/playbooks/prod_web.yml @@ -17,6 +17,7 @@ - name: include tasks for applications include_tasks: tasks/{{ item }} with_items: + - app/gitlab-runner.yml - app/redis.yml - web/9iron.yml - web/ara.yml diff --git a/playbooks/tasks/app/gitlab-runner.yml b/playbooks/tasks/app/gitlab-runner.yml new file mode 100644 index 0000000..da5f34c --- /dev/null +++ b/playbooks/tasks/app/gitlab-runner.yml @@ -0,0 +1,10 @@ +# vim:ft=ansible: +- name: docker deploy gitlab runner + docker_container: + name: gitlab-runner + image: gitlab/gitlab-runner:latest + restart_policy: unless-stopped + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /data/gitlab-runner:/etc/gitlab-runner + tags: [ docker, gitlab, runner ]