ansible-role-forgejo-runner/tasks/validate_config.yml
Sergio Durigan Junior e8468c525b
Initial commit
Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
2024-09-09 21:34:36 -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