I’ve added ansible as a system sudoer. All of the parameters I’m using; src, dest, owner, group and mode seem to be listed as supported in the error message.
I also verified that the destination file “/etc/sudoers.d/ansible” does not exist. The source file “~/git projects/ansible_pull/tasks/files/sudoers_ansible” does exist.
OK, I’m lost. What is my issue? The formatting of your reply is a bit funky. But if you are talking about “mode: 0440”, that was in the initial post. Is there something wrong with that, and if so, what?
he was talking about the line **above** what he wrote, which is 'root:
root'. That line was **not** included in your first post, and that's
the line that's wrong. It must be 'user: root' (as it was in your first
post).
I must have been reviewing the wrong file, not the one that was being executed, because it said group: root. But the actual users.yml did have root: root and now it works as expected.