--- - name: nextcloud data file: path: "{{ nextcloud_data }}" state: directory recurse: yes - name: nextcloud container docker_container: name: nextcloud.0rpheus.net image: "nextcloud:{{ nextcloud_version }}" pull: yes restart_policy: always ports: - 127.0.0.1:2090:80 volumes: - "{{ nextcloud_data }}:/var/www/html/"