16358e8aae
Changed Wants=docker.service to docker.socket Renamed handlers for reloading systemd to contain role in task name.
15 lines
306 B
YAML
15 lines
306 B
YAML
---
|
|
- name: restart docker
|
|
command: /bin/true
|
|
notify:
|
|
- Docker | reload systemd
|
|
- Docker | reload docker
|
|
|
|
- name : Docker | reload systemd
|
|
shell: systemctl daemon-reload
|
|
when: ansible_service_mgr == "systemd"
|
|
|
|
- name: Docker | reload docker
|
|
service:
|
|
name: docker
|
|
state: restarted
|