main.yml 805 B

123456789101112131415161718192021222324
  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. when: (not skip_node_svc_handlers | default(False) | bool) and not (node_service_status_changed | default(false) | bool)
  17. - name: reload sysctl.conf
  18. command: /sbin/sysctl -p
  19. - name: reload systemd units
  20. command: systemctl daemon-reload