ansible-role-forgejo-runner/tasks/validate_config.yml
Sergio Durigan Junior 09ef40d742
Initial commit
Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
2024-09-11 17:24:31 -04:00

15 lines
464 B
YAML

---
- name: Fail if required Forgejo Runner settings not defined
ansible.builtin.fail:
msg: >
You need to define a required configuration setting (`{{ item }}`).
when: "vars[item] == ''"
with_items:
- forgejo_runner_identifier
- forgejo_runner_container_network
- forgejo_runner_docker_socket_path
- forgejo_runner_runner_name
- forgejo_runner_instance_url
- forgejo_runner_registration_token
- forgejo_runner_capacity