2021-07-13 20:04:25 +00:00
|
|
|
- name: Create Docker volumes
|
|
|
|
community.docker.docker_volume:
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
driver: local
|
|
|
|
driver_options:
|
|
|
|
type: cifs
|
2021-07-13 21:17:02 +00:00
|
|
|
o: "username={{ cifs_username }},password={{ cifs_password }},domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8"
|
2021-07-13 20:04:25 +00:00
|
|
|
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
|
2021-07-13 21:17:02 +00:00
|
|
|
- cifs_videos-films:/data/movies
|
|
|
|
- cifs_videos-series:/data/series
|
2021-07-13 20:04:25 +00:00
|
|
|
register: output
|
|
|
|
|
|
|
|
- ansible.builtin.debug:
|
|
|
|
var: output
|