when using && you need shell: as command module does not allow for
'shellisms'

also you want to sleep AFTER the reboot request:

 shell: systemctl reboot && sleep 2

-- 
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/CACVha7c%2B5%2BmE-6kGhFofn2Lf2q2TSF3r8tpqA_himkkPn5Mpuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to