main.yml 623 B

123456789101112131415161718192021222324252627
  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 is failed)
  12. retries: 3
  13. delay: 30
  14. - name: restart node
  15. systemd:
  16. name: "{{ openshift_service_type }}-node"
  17. state: restarted
  18. register: l_restart_node_result
  19. until: not (l_restart_node_result is failed)
  20. retries: 3
  21. delay: 30
  22. - name: save iptable rules
  23. become: yes
  24. command: 'iptables-save'