Ansible-lint: Difference between revisions
From DWIKI
(Created page with "=FAQ= ==Don't compare to literal True/False== Instead of when: (foo == 1 and bar == 0) == false use when: not (foo == 1 and bar == 0) ==Commands should not change things...") |
mNo edit summary |
||
Line 10: | Line 10: | ||
Sometimes fixed by adding | Sometimes fixed by adding | ||
changed_when: false | changed_when: false | ||
==Lines should be no longer than 160 chars== | |||
ignore for now? |
Revision as of 16:03, 6 April 2023
FAQ
Don't compare to literal True/False
Instead of
when: (foo == 1 and bar == 0) == false
use
when: not (foo == 1 and bar == 0)
Commands should not change things if nothing needs doing
Sometimes fixed by adding
changed_when: false
Lines should be no longer than 160 chars
ignore for now?