deploy_gitea_runner/tasks/configure.yml

36 lines
975 B
YAML
Raw Normal View History

2023-07-27 17:12:18 +00:00
---
# task/configure file for deploy_adguard
2023-08-11 18:06:15 +00:00
- name: "Copy gitea-runnner.service file"
2023-07-27 17:12:18 +00:00
ansible.builtin.template:
2023-08-11 18:06:15 +00:00
src: "gitea-runnner.service.j2"
dest: "/etc/systemd/system/gitea-runnner.service"
2023-07-27 17:12:18 +00:00
owner: root
group: root
mode: '0644'
notify:
- systemctl-daemon-reload
- name: "Configure docker-compose deployment"
block:
- name: "Copy docker-compose.yml template"
ansible.builtin.template:
src: "docker-compose.yml.j2"
dest: "{{ deploy_gitea_runner_directory }}/docker-compose.yml"
owner: root
group: root
mode: '0600'
notify:
2023-08-11 18:06:15 +00:00
- systemctl-enable-gitea-runnner
- systemctl-restart-gitea-runnner
2023-07-27 17:12:18 +00:00
- name: "Copy config.yaml"
ansible.builtin.template:
src: "config.yaml.j2"
dest: "{{ deploy_gitea_runner_directory }}/config.yaml"
owner: root
group: root
mode: '0600'
when: deploy_gitea_runner_config != {}
notify:
2023-08-11 18:06:15 +00:00
- systemctl-restart-gitea-runnner