check files and file contents in 2 folders

Hi,

I wish to compare 2 folders to see if the files and file contents are the same. Can it be done?

This is my command:
$ ansible-playbook playbook.yml --check --diff

This is my playbook:
action: copy src=${item.name} dest=${item.groups}
with_fileglob:

  • { name: ‘/home/celine/Desktop/Folder1/', groups: '/home/celine2/Desktop/Folder2/’}

I got a list of fatal error.

Thanks

First off, you are using old pre-1.2 variable syntax here, and should not.

{{ item.name }}

is preferred.

To answer your question, no. dest takes a single parameter, not a list.