TFW you write something with visudo so that you know that it will work, then you copy it in ansible, run the ansible playbook, and it breaks.
And then you open the file that ansible has written with visudo, save it with no changes, and it works.
And you spend hours trying to understand what happened.
And then it was a missing newline at the end of the file.
rag. Gustavino Bevilacqua likes this.