Revert "Fixed required variable validation (#1074)" (#1076)

This reverts commit 3289bb28b0.
This commit is contained in:
Gregory Mulvaney authored and GitHub committed 2023-12-08 12:18:47 -05:00
1 parent 3b1a4e5d5d
commit 123cdbf50e
1 file changed
+3 -4
+3 -4
View File
@@ -1,9 +1,8 @@
---
- name: Verify required bootstrap vars are set
ansible.builtin.assert:
that:
- vars[item] is defined
- vars[item] | default('', true) | trim != ''
that: item | default('', true) | trim != ''
success_msg: Required bootstrap var {{ item }} exists and is defined
fail_msg: Required bootstrap var {{ item }} does not exists or is not defined
loop:
@@ -35,4 +34,4 @@
fail_msg: Node name {{ item.name }} is not valid
loop: "{{ bootstrap_nodes.master + bootstrap_nodes.worker | default([]) }}"
loop_control:
label: "{{ item.name }}"
label: "{{ item.name }}"