On 03. juli 2017 13:44, Danilo Braga wrote:
What I need now, is a form way to open the file 'output.log', read it line
by line and run the command "shutdown" at the remote host.

To read a file line by line you can use "with_lines: cat output.log"

--
Kai Stian Olstad

--
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0d824c6b-41a6-f394-f060-a674f5315331%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to