I am trying to create an ansible script which excludes a particular directory and its contents
and should zip the files under other directories but getting the below error
TASK [archive the files] fatal: : FAILED! => {“msg”: “‘dict object’ has no attribute ‘files’”}
I am trying to create an ansible script which excludes a particular directory and its contents
and should zip the files under other directories but getting the below error
TASK [archive the files] fatal: : FAILED! => {"msg": "'dict object' has no attribute 'files'"}
Only the find module would add "files" to the registered value- The command module
doesn't do that.
Thanks for the help ,our main aim is to create a automated ansible script
which takes multiple path (hard coded) and with find module it should check files older
than 7 days and should exclude few directories or files and should compress the other files.
But somehow find and exclude path with time stamp is not working
I am trying multiple approaches but not successful but no luck ,any hint would be helpful