diff --git a/roles/0-init/tasks/validate_vars.yml b/roles/0-init/tasks/validate_vars.yml index 636f64abf..8e94ff725 100644 --- a/roles/0-init/tasks/validate_vars.yml +++ b/roles/0-init/tasks/validate_vars.yml @@ -13,8 +13,8 @@ # by various scripts, possibly bypassing 0-init? Either way, risks abound :/ # 1. "Ansible 2.8+ ADVISORY: avoid warnings by using 'when: var | bool' for -# top-level BARE vars (in case they're strings, instead of boolean)" -# https://github.com/iiab/iiab/issues/1632 +# top-level BARE vars (in case they're strings, instead of boolean)" per #1632. +# 2020-10-16: NO LONGER NEC, SEE: https://github.com/iiab/iiab/pull/2576 # 2. "How Exactly Does Ansible Parse Boolean Variables?" # https://stackoverflow.com/questions/47877464/how-exactly-does-ansible-parse-boolean-variables/47877502#47877502 @@ -32,6 +32,10 @@ # ~18 words too WILL FAIL as strings (as will any non-empty string...so beware # casting strings to boolean later on...can make the situation worse!) # https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.8.html#bare-variables-in-conditionals +# +# 2020-07-08 - Excellent analysis & summary by Jon Spriggs: "In Ansible, +# determine the type of a value, and casting those values to other types" +# https://jon.sprig.gs/blog/post/1801 # 3. "How do i fail a task in Ansible if the variable contains a boolean value? # I want to perform input validation for Ansible playbooks"