diff options
Diffstat (limited to 'ansible/roles')
-rw-r--r-- | ansible/roles/docker/handlers/docker_restart.yml | 18 | ||||
-rw-r--r-- | ansible/roles/docker/handlers/main.yml | 22 |
2 files changed, 20 insertions, 20 deletions
diff --git a/ansible/roles/docker/handlers/docker_restart.yml b/ansible/roles/docker/handlers/docker_restart.yml deleted file mode 100644 index 8feb9a95..00000000 --- a/ansible/roles/docker/handlers/docker_restart.yml +++ /dev/null @@ -1,18 +0,0 @@ ---- -- name: Stopping docker systemd service - systemd: - name: docker - state: stopped - enabled: true - -# WA for docker bug, see OOM-1735 -- name: Ensure docker.sock cleaned properly - file: - state: absent - path: /var/run/docker.sock - -- name: Starting docker systemd service - systemd: - name: docker - state: started - enabled: true diff --git a/ansible/roles/docker/handlers/main.yml b/ansible/roles/docker/handlers/main.yml index de4a52ac..5bf8619c 100644 --- a/ansible/roles/docker/handlers/main.yml +++ b/ansible/roles/docker/handlers/main.yml @@ -1,3 +1,21 @@ --- -- name: Restart Docker - import_tasks: docker_restart.yml +- name: Stopping docker systemd service + systemd: + name: docker + state: stopped + enabled: true + listen: "Restart Docker" + +# WA for docker bug, see OOM-1735 +- name: Ensure docker.sock cleaned properly + file: + state: absent + path: /var/run/docker.sock + listen: "Restart Docker" + +- name: Starting docker systemd service + systemd: + name: docker + state: started + enabled: true + listen: "Restart Docker" |