--- - name: Start ddclient systemd: name: ddclient state: started enabled: yes daemon_reload: yes - name: Restart ddclient systemd: name: ddclient state: restarted enabled: yes daemon_reload: yes - name: Restart docker ddclient 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 detach: true restart_policy: unless-stopped volumes: "{{ ddclient_volumes }}" when: ddclient_container_engine == 'docker' - name: Restart podman ddclient containers.podman.podman_container: name: "{{ ddclient_container_name }}" hostname: "{{ ddclient_container_name }}" network: "{{ ddclient_network_mode }}" image: "{{ ddclient_container_registry }}/{{ ddclient_image_name }}:{{ ddclient_image_tag }}" state: started restart: yes volumes: "{{ ddclient_volumes }}" when: ddclient_container_engine == 'podman'