Is this still with some issues?
I wanted to keep the src directory the "system of record" if you will...so that if I add / delete files from the ansible server i'm executing the playbook on, it will happen on the destination machine.
I know I could use command: rsync or shell: rsync or whatever, but according to the ansible module page, it seems like synchronize should at least handle this:
3 - name: copy install pagages to server
4 synchronize: src=etc/server1/scripts/ dest=/etc/server1/scripts/
I'm using this with roles, and from the error, it seems like it does not follow the same logic other things do with roles:
msg: rsync: change_dir "/home/brian/Documents/scripts/ansible//etc/server1/scripts" failed: No such file or directory (2)
seems like it doesn't go into the "files" folder of the role it's executing from, even though the ansible module speaks to relative paths.
Thoughts?
(From the ansible module website)
# Synchronization of src on the control machine to dest on the remote hosts
synchronize: src=some/relative/path dest=/some/absolute/path