---
- 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"}
--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/931614963.59128.1659339453322%40office.mailbox.org.
---
- 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"}
--
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 ansible-proje...@googlegroups.com.
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKRLcHg2Sbjz7Ysgkvb5NsFjn9xdm%3DwmVzn4ja4iSTz9BKUpTQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKRLcHg2Sbjz7Ysgkvb5NsFjn9xdm%3DwmVzn4ja4iSTz9BKUpTQ%40mail.gmail.com.
Isn't src and dest the same place?
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPAjob8hCdxBzPhP2CwhbEg6bq%3D9m-Gic4Cor2X%2BL50dHXdfyw%40mail.gmail.com.
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/PH0PR10MB5593EC179DC1113880752658F09A9%40PH0PR10MB5593.namprd10.prod.outlook.com.