--- - name: restart-nextcloud docker_container: name: "{{ nextcloud_container_name }}" state: started restart: yes