secrets/nameserver.yml is only required if we're using DDNS
Signed-off-by: David Galloway <dgallowa@redhat.com>
---
- name: Include secrets
- include_vars: "{{ secrets_path | mandatory }}/nameserver.yml"
+ include_vars: "{{ item }}"
no_log: true
+ with_first_found:
+ - "{{ secrets_path | mandatory }}/nameserver.yml"
+ - empty.yml
tags:
- always
--- /dev/null
+---
+# This is empty on purpose. Used as the last line
+# when using include_vars with with_first_found when
+# the var file might not exist.
+#
+# Maybe related issue:
+# https://github.com/ansible/ansible/issues/10000