--- - name: start ddclient systemd: name: ddclient state: started enabled: yes - name: restart ddclient systemd: name: ddclient state: restarted enabled: yes - name: restart docker ddclient community.general.docker_container: name: "{{ namespace }}-ddclient" image: "{{ docker_registry }}/ddclient:{{ ddclient_image_tag | default('v3.9.1-ls45') }}" state: started restart: yes container_default_behavior: no_defaults detach: true restart_policy: unless-stopped volumes: - "/opt/{{ namespace }}/ddclient.conf:/config/ddclient.conf" - "/opt/{{ namespace }}/Kvps.key:/config/Kvps.key" - "/opt/{{ namespace }}/Kvps.private:/config/Kvps.private"