Mikel,

You can use the reboot plugin 
<https://docs.ansible.com/ansible/latest/modules/reboot_module.html> with a 
conditional to control when the system is rebooted.

- name: Reboot the system
  reboot:
  when: my_yum_variable != 'new'


This question is better answered on the Ansible Project mailing list 
<https://groups.google.com/forum/#!forum/ansible-project> or #ansible on IRC 
<https://webchat.freenode.net/#ansible>.

>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/664c0d7e-2951-4327-96e6-15fba1218889%40googlegroups.com.

Reply via email to