But with the "with_lines", is it possible to run the command remotely at 
the switch?

Em segunda-feira, 3 de julho de 2017 13:28:35 UTC-3, Kai Stian Olstad 
escreveu:
>
> 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/fd4c8dc8-6b83-40ba-9e0e-5bdda890a20c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to