duplicity_playbooks/tasks/assert_env_var_not_empty.yml

7 lines
194 B
YAML
Raw Permalink Normal View History

---
- name: Assert {{ item }} environment variable is set
ansible.builtin.assert:
that:
2023-10-21 23:12:37 +00:00
- lookup('env','' ~ item) | length > 0
msg: "{{ item }} environment variable must be set"