main.yml 942 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. - name: restart openvswitch
  3. systemd:
  4. name: openvswitch
  5. state: restarted
  6. when: (not skip_node_svc_handlers | default(False) | bool) and not (ovs_service_status_changed | default(false) | bool) and openshift.common.use_openshift_sdn | bool
  7. notify:
  8. - restart openvswitch pause
  9. - name: restart openvswitch pause
  10. pause: seconds=15
  11. when: (not skip_node_svc_handlers | default(False) | bool) and openshift.common.is_containerized | bool
  12. - name: restart node
  13. systemd:
  14. name: "{{ openshift.common.service_type }}-node"
  15. state: restarted
  16. register: l_openshift_node_restart_node_result
  17. until: not l_openshift_node_restart_node_result | failed
  18. retries: 3
  19. delay: 30
  20. when:
  21. - (not skip_node_svc_handlers | default(False) | bool)
  22. - not (node_service_status_changed | default(false) | bool)
  23. - name: reload sysctl.conf
  24. command: /sbin/sysctl -p
  25. - name: reload systemd units
  26. command: systemctl daemon-reload