mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-16 08:48:04 +00:00
20 lines
557 B
YAML
20 lines
557 B
YAML
- name: Create mymedia for alexa Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ mymediaforalexa_media_directory }}"
|
|
- "{{ mymediaforalexa_data_directory }}"
|
|
|
|
- name: mymedia for alexa Docker Container
|
|
docker_container:
|
|
name: mymediaforalexa
|
|
image: bizmodeller/mymediaforalexa
|
|
pull: true
|
|
volumes:
|
|
- "{{ mymediaforalexa_media_directory }}:/medialibrary:rw"
|
|
- "{{ mymediaforalexa_data_directory }}:/datadir:rw"
|
|
network_mode: host
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
|