ansible-nas/roles/krusader/tasks/main.yml
HitLuca 59e47c4ebf 🏗️ converted remaining tasks to proper roles, moving vars definitions into proper role subfolder.
🐛 added missing entries in nas.yml (?!?)
♻️ reordered entries in nas.yml in alphabetical order. Renamed vd variables to virtual_desktop for ease of understanding
2022-07-27 10:41:17 +02:00

34 lines
1.2 KiB
YAML

---
- name: Krusader Directory
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ krusader_config_directory }}/krusader"
- name: Krusader Docker Container
docker_container:
name: krusader
image: djaydev/krusader:latest
pull: true
volumes:
- "{{ krusader_config_directory }}:/config:rw"
- "{{ krusader_browse_directory }}:/mnt/fs"
ports:
- "{{ krusader_port_http }}:5800"
- "{{ krusader_port_vnc }}:5900"
env:
USER_ID: "{{ krusader_user_id }}"
GROUP_ID: "{{ krusader_group_id }}"
SECURE_CONNECTION: "{{ krusader_secure_connection }}"
TZ: "{{ ansible_nas_timezone }}"
VNC_PASSWORD: "{{ krusader_vnc_password }}"
restart_policy: unless-stopped
memory: "{{ krusader_memory }}"
labels:
traefik.enable: "{{ krusader_available_externally }}"
traefik.http.routers.krusader.rule: "Host(`{{ krusader_hostname }}.{{ ansible_nas_domain }}`)"
traefik.http.routers.krusader.tls.certresolver: "letsencrypt"
traefik.http.routers.krusader.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.krusader.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.krusader.loadbalancer.server.port: "5800"