Are you sure this is the task that is being run?
Try adding an extra bogus parameter, that should then be listed in the
error message

On Wed, 3 Nov 2021 at 21:21, Paul Truzzi <[email protected]> wrote:

> I was following a tutorial from a year ago so perhaps something in Ansible
> has changed.  My issue is I get this error:
>
> TASK [copy sudoers_ansible]
> ****************************************************
> fatal: [localhost]: FAILED! => {"changed": false, "checksum":
> "9c9e5aae4aa1c02a4934d7172d2c4cd6c057d15d",  "msg": "Unsupported parameters
> for (ansible.legacy.copy) module: root Supported parameters include:
>  _original_basename, attributes, backup, checksum, content, dest,
> directory_mode, follow, force, group, local_follow,  mode, owner,
> remote_src, selevel, serole, setype, seuser, src, unsafe_writes, validate"}
>
> From my users.yml file I have the following:
> - name: copy sudoers_ansible
>   copy:
>     src: files/sudoers_ansible
>     dest: /etc/sudoers.d/ansible
>     owner: root
>     group: root
>     mode: 0440
>
> 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.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f14aa3ba-47e1-479e-9b7b-568c0e741312n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/f14aa3ba-47e1-479e-9b7b-568c0e741312n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwP7mb_j%3Dz06C8MAgLfXwjW1717bBZ4o5g4vjj6qsf5HEA%40mail.gmail.com.

Reply via email to