- name: Create Docker volumes community.docker.docker_volume: name: "{{ item.name }}" driver: local driver_options: type: cifs o: "username=,password=,domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8" device: "//192.168.11.225/{{ item.path }}" loop: - name: cifs_books path: Public/Boeken - name: cifs_photos path: Public/Foto's - name: cifs_videos-series path: Public/Video's/Series - name: cifs_videos-films path: Public/Video's/Films - name: cifs_songs path: Public/Audio/DeSchakel - name: Start Plex container community.docker.docker_container: name: Plex image: linuxserver/plex network_mode: host env: VERSION: latest volumes: - /root/containers/pvr/plex/config:/config - cifs_photos:/data/photos - cifs_video-films:/data/movies - cifs_video-series:/data/series command: sleep 1d register: output - ansible.builtin.debug: var: output