You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
659 B

  1. ---
  2. - name: restart docker
  3. command: /bin/true
  4. notify:
  5. - Docker | reload systemd
  6. - Docker | reload docker.socket
  7. - Docker | reload docker
  8. - Docker | wait for docker
  9. - name: Docker | reload systemd
  10. systemd:
  11. daemon_reload: true
  12. - name: Docker | reload docker.socket
  13. service:
  14. name: docker.socket
  15. state: restarted
  16. when: ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']
  17. - name: Docker | reload docker
  18. service:
  19. name: docker
  20. state: restarted
  21. - name: Docker | wait for docker
  22. command: "{{ docker_bin_dir }}/docker images"
  23. register: docker_ready
  24. retries: 20
  25. delay: 1
  26. until: docker_ready.rc == 0