36 lines
		
	
	
		
			998 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			998 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| - name: Create Docker volumes
 | |
|   community.docker.docker_volume:
 | |
|     name: "{{ item.name }}"
 | |
|     driver: local
 | |
|     driver_options:
 | |
|       type: cifs
 | |
|       o: "username={{ cifs_username }},password={{ cifs_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_videos-films:/data/movies
 | |
|       - cifs_videos-series:/data/series
 | |
|   register: output
 | |
| 
 | |
| - ansible.builtin.debug:
 | |
|     var: output |