- hosts: host1
remote_user: root
tasks:
- synchronize:
src: /etc/httpd
dest: /mytestfile
Iam getting the following error.Could anyone help
PLAY [host1] *******************************************************************
TASK [Gathering Facts] *********************************************************
ok: [13.71.122.117]
TASK [synchronize] *************************************************************
fatal: [13.71.122.117]: FAILED! => {"changed": false, "failed": true, "msg": "Failed to find required executable rsync in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin"}
to retry, use: --limit @/ansible/hai_yaml.retry
PLAY RECAP *********************************************************************
13.71.122.117 : ok=1 changed=0 unreachable=0 failed=1