2

In my Ansible playbook, I need to run a command that takes as an argument the path to an XML file. The command will read this XML file.

My questions is: how is this file supplied to command as input. As far as I have understood, the command is run on the remote machine. Do I need to, for example, use copy to first transfer the input file to the remote host (say, to /tmp/)? Or is there a more straightforward builtin way?

1 Answer 1

2

Nope. Copy the file and then execute your command.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.