diff --git a/roles/ddclient/handlers/main.yml b/roles/ddclient/handlers/main.yml index 7d9406f..a61283f 100644 --- a/roles/ddclient/handlers/main.yml +++ b/roles/ddclient/handlers/main.yml @@ -15,6 +15,7 @@ community.general.docker_container: name: "{{ ddclient_container_name }}" image: "{{ ddclient_container_registry }}/{{ ddclient_image_name }}:{{ ddclient_image_tag }}" + network_mode: "{{ ddclient_network_mode }}" state: started restart: yes container_default_behavior: no_defaults @@ -27,7 +28,7 @@ when: ddclient_container_engine == 'docker' - name: restart podman ddclient - community.general.docker_container: + community.general.podman_container: name: "{{ ddclient_container_name }}" hostname: "{{ ddclient_container_name }}" network: "{{ ddclient_network_mode }}"