Remove docker restart condition from docker role
Docker role doesn't trigger docker restart when run in docker container
(e.g. molecule). Remove the condition, as in dind case
docker in container works same way as docker out of container.
Change-Id: I8c80a09baccd76c78f2cbb8e474044351fd9b3d3
Issue-ID: OOM-1816
Signed-off-by: Michal Zegan <m.zegan@samsung.com>
diff --git a/ansible/roles/docker/handlers/main.yml b/ansible/roles/docker/handlers/main.yml
index 9916a81..de4a52a 100644
--- a/ansible/roles/docker/handlers/main.yml
+++ b/ansible/roles/docker/handlers/main.yml
@@ -1,6 +1,3 @@
---
- name: Restart Docker
import_tasks: docker_restart.yml
- when:
- - ansible_env.container is defined
- - ansible_env.container != 'docker'