duplicity_playbooks/tasks/assert_env_var_not_empty.yml

7 lines
197 B
YAML
Raw Normal View History

---
- name: Assert {{ item }} environment variable is set
ansible.builtin.assert:
that:
- lookup('env','{{ item }}') | length > 0
msg: "{{ item }} environment variable must be set"