Closed richm closed 1 year ago
[citest]
lgtm.
@richm what was failing due to the use of "yes/no"? IIRC, ansible-freeipa pass ansible-test with "yes/no".
https://ansible-lint.readthedocs.io/rules/yaml/ - yaml[truthy]
- see also https://github.com/redhat-cop/automation-good-practices/tree/main/coding_style#yaml-and-jinja2-syntax Use true and false for boolean values in playbooks
Not sure why you don't see this in ansible-freeipa - perhaps you are suppressing it in .ansible-lint or .yamllint.yml or elsewhere?
[citest]
lgtm. @richm what was failing due to the use of "yes/no"? IIRC, ansible-freeipa pass ansible-test with "yes/no".
https://ansible-lint.readthedocs.io/rules/yaml/ -
yaml[truthy]
- see also https://github.com/redhat-cop/automation-good-practices/tree/main/coding_style#yaml-and-jinja2-syntaxUse true and false for boolean values in playbooks
Not sure why you don't see this in ansible-freeipa - perhaps you are suppressing it in .ansible-lint or .yamllint.yml or elsewhere?
Found it. On .yamllint
we have:
truthy:
allowed-values: ["yes", "no", "true", "false", "True", "False"]
Thank you for the pointers.
Use
true
/false
instead ofyes
/no
Fix spacing in braces/brackets All tasks must be named Documents should begin with---
Other cleanup