ansible-role-forgejo-runner/tasks/main.yml
Sergio Durigan Junior 13b36c88b3
Initial commit
Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
2024-09-10 18:44:37 -04:00

20 lines
533 B
YAML

---
- block:
- when: forgejo_runner_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/validate_config.yml"
- when: forgejo_runner_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/install.yml"
tags:
- setup-all
- setup-forgejo-runner
- install-all
- install-forgejo-runner
- block:
- when: not forgejo_runner_enabled | bool
ansible.builtin.include_tasks: "{{ role_path }}/tasks/uninstall.yml"
tags:
- setup-all
- setup-forgejo-runner