fix docker and podman

This commit is contained in:
ace 2022-06-23 19:57:52 +03:00
parent cb7818fa5f
commit 5b753e0eeb
No known key found for this signature in database
GPG Key ID: 2E47CC17BA7F8CF0
2 changed files with 2 additions and 1 deletions

View File

@ -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 }}"

View File

@ -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