as far as I am aware of things delegate_to is located above the module name
tasks: - name: "copy " delegate_to: destination server 1 copy: src: /opt/odrive/alc/library/libraryusername.csv remote_src: yes dest: /var/alc check_mode: yes I am still quite new to Ansible, so this is not founded on tons of experience though. > On 12/01/2021 6:08 PM Rene Paquin <rpaq...@wlu.ca> wrote: > > > > I am attemping o copy a file from one remote linux server to two remote linux > servers. My playbook is: > > > - name: copy file > > hosts: “remote source server” > > gather_facts: false > > > tasks: > > - name: "copy " > > copy: > > src: /opt/odrive/alc/library/libraryusername.csv > > remote_src: yes > > dest: /var/alc > > delegate_to: destination server 1 > > check_mode: yes > > - name: "copy " > > copy: > > src: /opt/odrive/alc/library/libraryusername.csv > > remote_src: yes > > dest: /var/alc > > delegate_to: destination server 2 > > check_mode: yes > > > I get the following error despite the file being there. > > "msg": "Source /opt/odrive/alc/library/libraryusername.csv not found" > > > What am I missing? > > > Thank you, > > > ******************************** > Rene Paquin - Systems Administrator > Wilfrid Laurier University > Waterloo, Ontario > (519)884-0710 x3795 > rpaq...@wlu.ca mailto:rpaq...@wlu.ca > > > > -- > 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-project+unsubscr...@googlegroups.com > mailto:ansible-project+unsubscr...@googlegroups.com . > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/YQBPR0101MB62463290E15B126F8E6BF23AD8689%40YQBPR0101MB6246.CANPRD01.PROD.OUTLOOK.COM > > https://groups.google.com/d/msgid/ansible-project/YQBPR0101MB62463290E15B126F8E6BF23AD8689%40YQBPR0101MB6246.CANPRD01.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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1322038778.164155.1638381066355%40office.mailbox.org.