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

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 file to config folder
    file:
    src: files/
    dest: “PATH/config/”
    mode: 0644

Thank you.

From the name of your task, it looks like you mean to use copy:, not file:

-Toshio

Thanks!

It solved the issue!