[WARNING]: The src option requires state to be 'link' or 'hard'. This will become an error in Ansible 2.10

34 views
Skip to first unread message

Ronnie10

unread,
Nov 26, 2018, 9:19:50 PM11/26/18
to Ansible Project
Hi All,

I have the following ansible codes, however when I run molecule test, it gave me the error as my subject, anyway to fix that?

- name: Copy <filename> file to config folder
  file:
    src: files/<filename>
    dest: "PATH/config/<filename>"
    mode: 0644


Thank you.

Toshio Kuratomi

unread,
Nov 26, 2018, 9:23:05 PM11/26/18
to ansible...@googlegroups.com
From the name of your task, it looks like you mean to use copy:, not file:

-Toshio

--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/119b5ce3-1ba4-4056-a568-15c00ed6775c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ronnie10

unread,
Nov 26, 2018, 9:27:19 PM11/26/18
to Ansible Project
Thanks!

It solved the issue!
Reply all
Reply to author
Forward
0 new messages