kubespray/roles/container-engine/docker/handlers/main.yml

31 lines
650 B
YAML
Raw Normal View History

2016-05-13 03:18:38 +08:00
---
- name: Docker | reload systemd
systemd_service:
name: docker
daemon_reload: true
masked: no
listen: Restart docker
2016-05-13 03:18:38 +08:00
- name: Docker | reload docker.socket
service:
name: docker.socket
state: restarted
when: ansible_os_family in ['Flatcar', 'Flatcar Container Linux by Kinvolk'] or is_fedora_coreos
listen: Restart docker
- name: Docker | reload docker
service:
name: docker
state: restarted
listen: Restart docker
- name: Docker | wait for docker
command: "{{ docker_bin_dir }}/docker images"
register: docker_ready
retries: 20
delay: 1
until: docker_ready.rc == 0
listen: Restart docker