mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
Update Ansible explanations in 0-init/tasks/validate_vars.yml
This commit is contained in:
parent
ca171fbc1c
commit
1c4f60150e
1 changed files with 6 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue