main.yml 433 B

123456789101112131415161718
  1. ---
  2. - name: restart container runtime
  3. systemd:
  4. name: "{{ openshift_docker_service_name }}"
  5. state: restarted
  6. daemon_reload: yes
  7. register: r_docker_restart_docker_result
  8. until: not (r_docker_restart_docker_result is failed)
  9. retries: 3
  10. delay: 30
  11. when: not docker_service_status_changed | default(false) | bool
  12. - name: restart udev
  13. systemd:
  14. name: systemd-udevd
  15. state: restarted
  16. daemon_reload: yes