--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f14aa3ba-47e1-479e-9b7b-568c0e741312n%40googlegroups.com.
I added a bogus parameter to my users.yml file as follows;
- name: copy sudoers_ansible
copy:
bogus: parameter
src: files/sudoers_ansible
dest: /etc/sudoers.d/ansible
owner: root
root: root
mode: 0440
Now the error message reads:
TASK [copy sudoers_ansible]
****************************************************
fatal: [localhost]: FAILED! => {"changed": false, "checksum":
"9c9e5aae4aa1c02a4934d7172d2c4cd6c057d15d", "msg": "Unsupported
parameters for (ansible.legacy.copy) module: bogus, 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"}
PLAY RECAP
*********************************************************************
localhost : ok=3 changed=0 unreachable=0
failed=1 skipped=0 rescued=0 ignored=0
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.
Paul
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/E2nR8v37D20/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwP7mb_j%3Dz06C8MAgLfXwjW1717bBZ4o5g4vjj6qsf5HEA%40mail.gmail.com.
I added a bogus parameter to my users.yml file as follows;
- name: copy sudoers_ansible
copy:
bogus: parameter
src: files/sudoers_ansible
dest: /etc/sudoers.d/ansible
owner: root
root: root
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20331b65-3c18-75a0-248a-e35f8b92f190%40gmail.com.
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?
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwNmgumY8gNWGfZE_uxZFAFiRb4_ceQPm3UFMfG7sxZ9Kg%40mail.gmail.com.