Closed edouard-lopez closed 3 years ago
Hey! You just need to add this:
changed_when: false
Just for context: doing changed_when: false
will make a task show as unchanged, even though it has caused changes. To me, accepting a false positive (a noop command showing up as changed) would be better than a false negative (a command that makes changes shows up as ok). Especially in situations like this, that deal with creating certificates. A reasonable condition would be: does the certificate file exists?
I have a task:
But
ansible-lint
complainsWhat conditional do you recommend?`