mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-24 00:00:12 +00:00
27 lines
667 B
YAML
27 lines
667 B
YAML
|
- name: Make dirs for runner
|
||
|
file:
|
||
|
path: "{{ item }}"
|
||
|
state: directory
|
||
|
loop:
|
||
|
- "{{ runnerPath }}"
|
||
|
- "{{ runnerPath }}/data"
|
||
|
|
||
|
- name: Copy docker-compose.yml to server
|
||
|
template:
|
||
|
src: ./templates/runner-docker-compose.yml
|
||
|
dest: "{{ runnerPath }}/docker-compose.yml"
|
||
|
|
||
|
- name: Copy runner.env to server
|
||
|
template:
|
||
|
src: ./templates/runner.env
|
||
|
dest: "{{ runnerPath }}/runner.env"
|
||
|
|
||
|
- name: Copy runner-config.yml to server
|
||
|
copy:
|
||
|
src: ./files/runner-config.yml
|
||
|
dest: "{{ runnerPath }}/config.yaml"
|
||
|
|
||
|
- name: Start Gitea runner service
|
||
|
community.docker.docker_compose_v2:
|
||
|
project_src: "{{ runnerPath }}"
|
||
|
state: present
|