added audiobookshelf to stack
This commit is contained in:
		
							
								
								
									
										2
									
								
								dns.yml
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dns.yml
									
									
									
									
									
								
							@@ -17,6 +17,8 @@
 | 
				
			|||||||
        ip: "152.53.36.98"
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
      - name: "auth"
 | 
					      - name: "auth"
 | 
				
			||||||
        ip: "152.53.36.98"
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
 | 
					      - name: "audio"
 | 
				
			||||||
 | 
					        ip: "152.53.36.98"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  tasks:
 | 
					  tasks:
 | 
				
			||||||
    - name: Add A records for subdomains
 | 
					    - name: Add A records for subdomains
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,6 +6,10 @@ pin.thesatelliteoflove.com {
 | 
				
			|||||||
    reverse_proxy pinry-pinry-1:80
 | 
					    reverse_proxy pinry-pinry-1:80
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					audio.thesatelliteoflove.com {
 | 
				
			||||||
 | 
					    reverse_proxy audiobookshelf-audiobookshelf-1:80
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
post.thesatelliteoflove.com {
 | 
					post.thesatelliteoflove.com {
 | 
				
			||||||
    reverse_proxy postiz:5000
 | 
					    reverse_proxy postiz:5000
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										19
									
								
								roles/docker/tasks/audiobookshelf.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								roles/docker/tasks/audiobookshelf.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					- name: make audiobookshelf directories
 | 
				
			||||||
 | 
					  ansible.builtin.file:
 | 
				
			||||||
 | 
					    path: "{{ item}}"
 | 
				
			||||||
 | 
					    state: directory
 | 
				
			||||||
 | 
					  loop:
 | 
				
			||||||
 | 
					    - /opt/stacks/audiobookshelf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Template out the compose file
 | 
				
			||||||
 | 
					  ansible.builtin.template:
 | 
				
			||||||
 | 
					    src: audiobookshelf-compose.yml.j2
 | 
				
			||||||
 | 
					    dest: /opt/stacks/audiobookshelf/compose.yml
 | 
				
			||||||
 | 
					    owner: root
 | 
				
			||||||
 | 
					    mode: 644
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: deploy audiobookshelf stack
 | 
				
			||||||
 | 
					  community.docker.docker_compose_v2:
 | 
				
			||||||
 | 
					    project_src: /opt/stacks/audiobookshelf
 | 
				
			||||||
 | 
					    files:
 | 
				
			||||||
 | 
					    - compose.yml
 | 
				
			||||||
@@ -109,3 +109,7 @@
 | 
				
			|||||||
- name: Install pinry
 | 
					- name: Install pinry
 | 
				
			||||||
  import_tasks: pinry.yml
 | 
					  import_tasks: pinry.yml
 | 
				
			||||||
  tags: pinry
 | 
					  tags: pinry
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Install audiobookshelf
 | 
				
			||||||
 | 
					  import_tasks: audiobookshelf.yml
 | 
				
			||||||
 | 
					  tags: audiobookshelf
 | 
				
			||||||
							
								
								
									
										23
									
								
								roles/docker/templates/audiobookshelf-compose.yml.j2
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								roles/docker/templates/audiobookshelf-compose.yml.j2
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
				
			|||||||
 | 
					services:
 | 
				
			||||||
 | 
					  audiobookshelf:
 | 
				
			||||||
 | 
					    image: ghcr.io/advplyr/audiobookshelf:2.16.0
 | 
				
			||||||
 | 
					    volumes:
 | 
				
			||||||
 | 
					      - audiobooks:/audiobooks
 | 
				
			||||||
 | 
					      - podcasts:/podcasts
 | 
				
			||||||
 | 
					      - config:/config
 | 
				
			||||||
 | 
					      - metadata:/metadata
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      - TZ=America/Denver
 | 
				
			||||||
 | 
					volumes:
 | 
				
			||||||
 | 
					  audiobooks:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					  podcasts:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					  config:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					  metadata:
 | 
				
			||||||
 | 
					    driver: local
 | 
				
			||||||
 | 
					networks:
 | 
				
			||||||
 | 
					  default:
 | 
				
			||||||
 | 
					    external: true
 | 
				
			||||||
 | 
					    name: lava
 | 
				
			||||||
		Reference in New Issue
	
	Block a user