-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Will Hall
committed
Apr 1, 2020
1 parent
aa9043b
commit b7360b0
Showing
7 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
upload_user: upload_user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,6 @@ all: | |
screen2.medianet: | ||
screen3.medianet: | ||
screen4.medianet: | ||
media: | ||
hosts: | ||
media2.medianet: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
- name: start media-server container | ||
docker_container: | ||
name: media | ||
image: "raw1251am/media-server:latest" | ||
state: started | ||
env_file: /etc/media-server.env | ||
restart_policy: always | ||
published_ports: | ||
- "8080:8080" | ||
mounts: | ||
- "type=bind,source=/var/www/media-server/media/static,target=/www/media/static" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
dependencies: | ||
- role: geerlingguy.docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
- name: ensure pip is installed | ||
apt: | ||
name: python-pip | ||
state: latest | ||
- name: ensure docker pip installed | ||
pip: | ||
name: docker | ||
state: latest | ||
|
||
- name: ensure static media directory exists | ||
file: | ||
path: /var/www/media-server/media/static | ||
This comment has been minimized.
Sorry, something went wrong. |
||
state: directory | ||
|
||
- name: ensure media-server env file exists | ||
template: | ||
src: media_server.env.j2 | ||
dest: /etc/media-server.env | ||
notify: start media-server container | ||
- name: ensure media-server image is latest | ||
docker_image: | ||
name: "raw1251am/media-server:latest" | ||
source: pull | ||
force_source: yes | ||
notify: start media-server container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
UPLOAD_USER={{ upload_user }} | ||
UPLOAD_PASSWORD={{ vault_upload_password }} | ||
DISCOGS_API_KEY={{ vault_discogs_api_key}} |
Do you think it'd be worth changing path directory to something more obvious? Like /var/media?