1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2024-12-12 08:43:55 +02:00
matrix-docker-ansible-deploy/roles/custom/matrix-bot-mjolnir/tasks/validate_config.yml

10 lines
304 B
YAML
Raw Normal View History

2021-03-24 05:46:08 +02:00
---
- name: Fail if required variables are undefined
ansible.builtin.fail:
2021-03-24 05:46:08 +02:00
msg: "The `{{ item }}` variable must be defined and have a non-null value."
with_items:
- "matrix_bot_mjolnir_access_token"
- "matrix_bot_mjolnir_management_room"
when: "vars[item] == '' or vars[item] is none"