main.yml 555 B

1234567891011121314151617181920212223
  1. ---
  2. - name: restart flanneld
  3. become: yes
  4. systemd: name=flanneld state=restarted
  5. - name: restart docker
  6. become: yes
  7. systemd:
  8. name: "{{ openshift_docker_service_name }}"
  9. state: restarted
  10. register: l_docker_restart_docker_in_flannel_result
  11. until: not l_docker_restart_docker_in_flannel_result | failed
  12. retries: 3
  13. delay: 30
  14. - name: restart node
  15. systemd:
  16. name: "{{ openshift.common.service_type }}-node"
  17. state: restarted
  18. register: l_restart_node_result
  19. until: not l_restart_node_result | failed
  20. retries: 3
  21. delay: 30