main.yml 1013 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. - name: restart openvswitch
  3. systemd:
  4. name: openvswitch
  5. state: restarted
  6. when:
  7. - not skip_node_svc_handlers | default(False) | bool
  8. - not (ovs_service_status_changed | default(false) | bool)
  9. - openshift.common.use_openshift_sdn | default(true) | bool
  10. register: l_openshift_node_upgrade_stop_openvswitch_result
  11. until: not l_openshift_node_upgrade_stop_openvswitch_result | failed
  12. retries: 3
  13. delay: 30
  14. notify:
  15. - restart openvswitch pause
  16. - name: restart openvswitch pause
  17. pause: seconds=15
  18. when: (not skip_node_svc_handlers | default(False) | bool) and openshift.common.is_containerized | bool
  19. - name: restart node
  20. systemd:
  21. name: "{{ openshift.common.service_type }}-node"
  22. state: restarted
  23. register: l_openshift_node_upgrade_restart_node_result
  24. until: not l_openshift_node_upgrade_restart_node_result | failed
  25. retries: 3
  26. delay: 30
  27. when:
  28. - (not skip_node_svc_handlers | default(False) | bool)
  29. - not (node_service_status_changed | default(false) | bool)