When overriding a bool from the CLI e.g. -e"foo=false"
, false
will be parsed
as a string. When this is used in a conditional on its own, it will not be
interpreted as a boolean, so results may be surprising.
A few solutions:
-eFOO=
-e{FOO: false}
- Be paranoid and put
| bool
at the end of all your conditionals
Print debug information without requiring -v
(which will print debug info for
every task).
- debug: var=foo
OR
- debug:
msg: foo is {{ foo }}
Stop task execution here.
- pause:
- Note on system dnf/selinux libs for RHEL
- Note on controller vs remote sources