---
- hosts: all
  become: true
  become_method: sudo
  gather_facts: true
  tasks:
    - name: rsync
      ansible.posix.synchronize:
        src: /root
        dest: /root
      delegate_to: hostname

error:


TASK [rsync] 
**********************************************************************************************************************************************************************************************
fatal: [ FAILED! => {"changed": false, "msg": "Failed to find required 
executable \"rsync\" in paths: 
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin"}
fatal: [localhost -> ]: FAILED! => {"changed": false, "msg": "Could not 
determine controller hostname for rsync to send to"}

PLAY RECAP 
***************************************************************************************************************************************************************

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9a5b2c02-2146-4dd1-be1e-f6fcf2598940n%40googlegroups.com.

Reply via email to