On 01/12/2021 18:08, Rene Paquin 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?

The copy module only supports the controller or target itself (remote_src) for 
the source file.

Take a look at the synchronize module if you want copy from one target to 
another.

Regards

            Racke

********************************
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://groups.google.com/d/msgid/ansible-project/YQBPR0101MB62463290E15B126F8E6BF23AD8689%40YQBPR0101MB6246.CANPRD01.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.


--
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/7addf104-5064-0bce-0a39-09aed56c3d6a%40linuxia.de.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to