Skip to content
Snippets Groups Projects
Commit ebaec5e6 authored by istmxrein's avatar istmxrein
Browse files

Add option to enable autoheal

parent c00ca055
No related branches found
No related tags found
No related merge requests found
...@@ -5,3 +5,5 @@ ipv6_enabled: false ...@@ -5,3 +5,5 @@ ipv6_enabled: false
docker_config_path: /etc/docker/daemon.json docker_config_path: /etc/docker/daemon.json
docker_config_enabled: false docker_config_enabled: false
docker_config: {} docker_config: {}
autoheal_enabled: false
- 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
restart_policy: always
state: started
...@@ -55,6 +55,10 @@ ...@@ -55,6 +55,10 @@
include_tasks: "ipv6.yml" include_tasks: "ipv6.yml"
when: ipv6_enabled when: ipv6_enabled
- name: Enable Autoheal if condition is true
include_tasks: "autoheal.yml"
when: autoheal_enabled
- name: Add daemon.json configuration - name: Add daemon.json configuration
include_tasks: "config.yaml" include_tasks: "config.yaml"
when: docker_config_enabled when: docker_config_enabled
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment