FreeKB - Ansible remote_src parameter
Ansible - remote_src parameter

The remote_src parameter is used to do something on a managed node (e.g. the target system). For example, let's say you want to use the copy module to copy a file on the managed node to another directory on the managed node. In this example, foo.txt is copied to the /tmp directory on the managed node.

- name: "copy foo.txt to /tmp"
  copy:
    src: "/root/foo.txt"
    dest: "/tmp/foo.txt"
    remote_src: "yes"

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 9c1eb in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |