2021-02-06 07:33:05 +00:00
|
|
|
---
|
|
|
|
- name: Create Mymediaforalexa Directories
|
2019-03-01 23:05:33 +00:00
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ mymediaforalexa_media_directory }}"
|
|
|
|
- "{{ mymediaforalexa_data_directory }}"
|
|
|
|
|
2021-02-06 07:33:05 +00:00
|
|
|
- name: mymediaforalexa Docker Container
|
2019-03-01 23:05:33 +00:00
|
|
|
docker_container:
|
|
|
|
name: mymediaforalexa
|
|
|
|
image: bizmodeller/mymediaforalexa
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ mymediaforalexa_media_directory }}:/medialibrary:rw"
|
|
|
|
- "{{ mymediaforalexa_data_directory }}:/datadir:rw"
|
2021-02-09 22:23:05 +00:00
|
|
|
network_mode: host
|
2019-03-01 23:05:33 +00:00
|
|
|
restart_policy: unless-stopped
|
2021-02-06 07:33:05 +00:00
|
|
|
memory: "{{ mymediaforalexa_memory }}"
|