add defauts + asseet-vars

This commit is contained in:
Gilles Mouchet 2024-05-22 17:11:26 +02:00
parent de020d3264
commit 540758fd38
2 changed files with 1 additions and 5 deletions

View File

@ -1,8 +1,4 @@
- name: verify if vars are defined and not empty - name: verify if vars are defined and not empty
assert: assert:
that: that:
- "{{ item }} is defined and {{ item }}|length > 0"
fail_msg: "'{{ item }}' is not defined or empty"
success_msg: "'{{ item }} ' is defined"
with_items:
- mail_domain - mail_domain

View File

@ -1,6 +1,6 @@
--- ---
#postfix #postfix
#mail_domain: gmotech.dyndns.org mail_domain: gmotech.dyndns.org
#mail_relay_host: smtpauths.bluewin.ch #mail_relay_host: smtpauths.bluewin.ch
#mail_relay_host: smtp.gmail.com #mail_relay_host: smtp.gmail.com
# DNS # DNS