From 5b753e0eeb86a5b9d9df429777f7cbf495428380 Mon Sep 17 00:00:00 2001 From: ace Date: Thu, 23 Jun 2022 19:57:52 +0300 Subject: [PATCH] fix docker and podman --- roles/ddclient/handlers/main.yml | 2 +- roles/ddclient/tasks/docker.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ddclient/handlers/main.yml b/roles/ddclient/handlers/main.yml index a61283f..c9b8234 100644 --- a/roles/ddclient/handlers/main.yml +++ b/roles/ddclient/handlers/main.yml @@ -28,7 +28,7 @@ when: ddclient_container_engine == 'docker' - name: restart podman ddclient - community.general.podman_container: + containers.podman.podman_container: name: "{{ ddclient_container_name }}" hostname: "{{ ddclient_container_name }}" network: "{{ ddclient_network_mode }}" diff --git a/roles/ddclient/tasks/docker.yml b/roles/ddclient/tasks/docker.yml index e3b6b77..c7b8351 100644 --- a/roles/ddclient/tasks/docker.yml +++ b/roles/ddclient/tasks/docker.yml @@ -26,6 +26,7 @@ docker_container: name: "{{ ddclient_container_name }}" image: "{{ ddclient_container_registry }}/{{ ddclient_image_name }}:{{ ddclient_image_tag }}" + network_mode: "{{ ddclient_network_mode }}" state: started container_default_behavior: no_defaults restart_policy: unless-stopped