On 27. May 2016 17:10, Francisco Lopes wrote:
- name: reboot system if required
> command: removes=/var/run/reboot-required sleep 1 && shutdown -r now 'Rebooting to complete system upgrade'

From the command module documentation:
"It will not be processed through the shell, so variables like $HOME and operations like "<", ">", "|", and "&" will not work (use the shell module if you need these features)."

--
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/cc37cbd9-40ef-ba02-49aa-1c19af681550%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to