mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 20:13:09 +00:00
26 lines
653 B
YAML
26 lines
653 B
YAML
|
---
|
||
|
- name: Create Homebridge Directories
|
||
|
file:
|
||
|
path: "{{ item }}"
|
||
|
state: directory
|
||
|
# mode: 0755
|
||
|
with_items:
|
||
|
- "{{ homebridge_config_directory }}"
|
||
|
|
||
|
- name: Homebridge Docker Container
|
||
|
docker_container:
|
||
|
name: homebridge
|
||
|
image: oznu/homebridge
|
||
|
pull: true
|
||
|
volumes:
|
||
|
- "{{ homebridge_config_directory }}:/homebridge"
|
||
|
network_mode: host
|
||
|
env:
|
||
|
TZ: "{{ ansible_nas_timezone }}"
|
||
|
PGID: "{{ homebridge_group_id }}"
|
||
|
PUID: "{{ homebridge_user_id }}"
|
||
|
HOMEBRIDGE_CONFIG_UI: 1
|
||
|
HOMEBRIDGE_CONFIG_UI_PORT: "{{ homebridge_ui_port }} "
|
||
|
restart_policy: unless-stopped
|
||
|
memory: 1g
|