ansible-nas/roles/netbootxyz/tasks/main.yml

34 lines
963 B
YAML
Raw Normal View History

2020-05-03 00:20:17 +00:00
---
- name: netbootxyz Directory
file:
path: "{{ item }}"
state: directory
with_items:
2020-05-29 10:10:02 +00:00
- "{{ netbootxyz_config_directory }}"
- "{{ netbootxyz_assets_directory }}"
2020-05-03 00:20:17 +00:00
- name: netbootxyz Docker Container
docker_container:
name: netbootxyz
image: linuxserver/netbootxyz:latest
pull: true
volumes:
2020-05-29 10:10:02 +00:00
- "{{ netbootxyz_config_directory }}:/config:rw"
- "{{ netbootxyz_assets_directory }}:/assets:rw"
2020-05-03 00:20:17 +00:00
ports:
- "{{ netbootxyz_port_http }}:3000"
- "{{ netbootxyz_port_http2 }}:80"
- "{{ netbootxyz_port_tftp }}:69/udp"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ netbootxyz_user_id }}"
PGID: "{{ netbootxyz_group_id }}"
restart_policy: unless-stopped
labels:
traefik.backend: "netbootxyz"
traefik.frontend.rule: "Host:netbootxyz.{{ ansible_nas_domain }}"
traefik.enable: "{{ netbootxyz_available_externally }}"
traefik.port: "80"
memory: 1g