Thank you for the response.  I made the change but still getting the same error.

Rene

From: dulhaver via Ansible Project <[email protected]>
Sent: December 1, 2021 12:51 PM
To: [email protected]
Subject: [EXTERNAL *] Fwd: Re: [ansible-project] remote copy issue

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 <[email protected]<mailto:[email protected]>> 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
[email protected]<mailto:[email protected]>



--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/YQBPR0101MB62463290E15B126F8E6BF23AD8689%40YQBPR0101MB6246.CANPRD01.PROD.OUTLOOK.COM<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2FYQBPR0101MB62463290E15B126F8E6BF23AD8689%2540YQBPR0101MB6246.CANPRD01.PROD.OUTLOOK.COM%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Crpaquin%40wlu.ca%7Ca65853e5725048fc431508d9b4f32c5d%7Cb45a5125b29846bc8b89ea5a7343fde8%7C1%7C0%7C637739778777301924%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=BGYCIaxPGgS1x3k59JJVXcxhM0NIdFk%2BBXGXCXsWTSA%3D&reserved=0>.
--
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1322038778.164155.1638381066355%40office.mailbox.org<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2F1322038778.164155.1638381066355%2540office.mailbox.org%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Crpaquin%40wlu.ca%7Ca65853e5725048fc431508d9b4f32c5d%7Cb45a5125b29846bc8b89ea5a7343fde8%7C1%7C0%7C637739778777311879%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=yS12kFwlmXlSmkAeYLU%2F57XCpQYC5mDDM9ccY4pzneI%3D&reserved=0>.

* ⚠ Notice: This email originated from outside of the organization. Do not 
click links or open attachments unless you recognize the sender and know the 
content is safe.

-- 
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/YQBPR0101MB6246ACEDD669B20336E81623D8689%40YQBPR0101MB6246.CANPRD01.PROD.OUTLOOK.COM.

Reply via email to