ansible-role-forgejo-runner/tasks/validate_config.yml

16 lines
464 B
YAML
Raw Normal View History

---
- 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