both are in the different hostnames. On Mon, Aug 1, 2022 at 6:43 PM 'Hearn, Stan J.' via Ansible Project < [email protected]> wrote:
> Isn't src and dest the same place? > > > > ansible.posix.synchronize: > > src: /root > > dest: /root > > > > > > *From:* [email protected] <[email protected]> > *On Behalf Of *John Petro > *Sent:* Monday, August 1, 2022 8:47 AM > *To:* [email protected] > *Subject:* [EXTERNAL] Re: [ansible-project] rsync failure > > > > Have you run the playbook in verbose mode to get more detail? Maybe > there's a mis-spelling in the inventory hostname you used or something in > the inventory. > > > > The only other idea I have is to copy/paste the msg section that starts > with "Could" into your search engine of choice and see what comes up > there. > > > > --John > > > > On Mon, Aug 1, 2022, 7:07 AM Ashok Reddy <[email protected]> wrote: > > Hi Team, > > > > whatever i've mentioned the inventory hostname just ref i.e not the actual > one. > > > > On Mon, Aug 1, 2022 at 4:18 PM Dick Visser <[email protected]> wrote: > > > > > > On Mon, 1 Aug 2022 at 12:23, Ashok Reddy <[email protected]> wrote: > > --- > > - hosts: all > > become: true > > become_method: sudo > > gather_facts: true > > tasks: > > - name: block > > block: > > - name: rsync > > command: "cat /proc/meminfo" > > rescue: > > - debug: > > msg: proceed to install > > - name: install rsync > > dnf: > > name: rsync > > state: present > > delegate_to: localhost > > - name: sync > > ansible.posix.synchronize: > > src: /root > > dest: /root > > delegate_to: inventory hostname > > > > Error: > > > > FAILED! => {"changed": false, "msg": "Could not determine controller > hostname for rsync to send to"} > > > > > > The listeral string "inventory hostname" is not a valid hostname. Fix that. > > Also, "become_method: sudo" and "gather_facts: true" are both the same as > the defaults, so you can leave that out. > > -- > 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/CAF8BbLa4-JSaG5%2BB2yQ0%2BRm_S-t4JgayH6TJKfxS97%2Bz0Kwinw%40mail.gmail.com > <https://urldefense.com/v3/__https:/groups.google.com/d/msgid/ansible-project/CAF8BbLa4-JSaG5*2BB2yQ0*2BRm_S-t4JgayH6TJKfxS97*2Bz0Kwinw*40mail.gmail.com?utm_medium=email&utm_source=footer__;JSUlJQ!!Fto3Xw!p8hbvtmqZLKa5gh23odUuEQXeiF_iXCzcEbwK8iUtKpbchG1RDJKoNZmPD3DRyu4wQUZTEdt89wc2VLCj-s$> > . > > -- > 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/CAKRLcHg2Sbjz7Ysgkvb5NsFjn9xdm%3DwmVzn4ja4iSTz9BKUpTQ%40mail.gmail.com > <https://urldefense.com/v3/__https:/groups.google.com/d/msgid/ansible-project/CAKRLcHg2Sbjz7Ysgkvb5NsFjn9xdm*3DwmVzn4ja4iSTz9BKUpTQ*40mail.gmail.com?utm_medium=email&utm_source=footer__;JSU!!Fto3Xw!p8hbvtmqZLKa5gh23odUuEQXeiF_iXCzcEbwK8iUtKpbchG1RDJKoNZmPD3DRyu4wQUZTEdt89wctl3ZhP0$> > . > > -- > 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/CAPAjob8hCdxBzPhP2CwhbEg6bq%3D9m-Gic4Cor2X%2BL50dHXdfyw%40mail.gmail.com > <https://urldefense.com/v3/__https:/groups.google.com/d/msgid/ansible-project/CAPAjob8hCdxBzPhP2CwhbEg6bq*3D9m-Gic4Cor2X*2BL50dHXdfyw*40mail.gmail.com?utm_medium=email&utm_source=footer__;JSUl!!Fto3Xw!p8hbvtmqZLKa5gh23odUuEQXeiF_iXCzcEbwK8iUtKpbchG1RDJKoNZmPD3DRyu4wQUZTEdt89wcjqtHGwU$> > . > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/7dszRgDhwxY/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/PH0PR10MB5593EC179DC1113880752658F09A9%40PH0PR10MB5593.namprd10.prod.outlook.com > <https://groups.google.com/d/msgid/ansible-project/PH0PR10MB5593EC179DC1113880752658F09A9%40PH0PR10MB5593.namprd10.prod.outlook.com?utm_medium=email&utm_source=footer> > . > -- 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/CAKRLcHjaF7OEgv_2JKHKvQuQxT1k%3DXnr%2BO7nM4K_Sq_%3D5aCqkQ%40mail.gmail.com.
