diff --git a/basic/roles/docker/tasks/autoheal.yml b/basic/roles/docker/tasks/autoheal.yml index 5740b4c57bf3578563dc7c6d38eac8c31cd1414e..903ab111e2697f0ea10edb47321e72a14efeddd5 100644 --- a/basic/roles/docker/tasks/autoheal.yml +++ b/basic/roles/docker/tasks/autoheal.yml @@ -1,10 +1,15 @@ +- name: Pull the latest autoheal image + community.docker.docker_image: + name: "willfarrell/autoheal" + source: pull + - name: Start Autoheal container community.docker.docker_container: name: autoheal image: willfarrell/autoheal volumes: - /var/run/docker.sock:/var/run/docker.sock - environment: - - AUTOHEAL_CONTAINER_LABEL=all + env: + AUTOHEAL_CONTAINER_LABEL: all restart_policy: always state: started