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
  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 


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 

Reply via email to