lab-ansible/roles/apps/defaults/main.yml

85 lines
2 KiB
YAML

# vim: ft=yaml.ansible
# code: language=ansible
---
apps_data_root: "{{ data_fs }}/apps"
apps_base_domain: "{{ base_domain }}"
apps_local_domain: local.{{ apps_base_domain }}
apps_shared_docker_network: apps_network
apps_postfix_docker_network: postfix_network
apps_vars:
caddy:
backup: false
sender: false
extra_tasks: true
docker_ipv4: 172.17.2.48
version: 2.7.6-alpine
nginx:
backup: false
sender: false
extra_tasks: true
docker_ipv4: 172.17.2.32
version: 1.25.3-alpine-slim
postfix:
backup: true
sender: false
extra_tasks: false
hostname: smtp.{{ apps_base_domain }}
version: latest-alpine
ipfs:
backup: false
sender: false
extra_tasks: true
domain: ipfs.{{ apps_local_domain }}
gateway_domain: ipfs-gateway.{{ apps_base_domain }}
version: v0.25.0
monerod:
backup: false
sender: false
extra_tasks: true
domain: xmr.{{ apps_local_domain }}
version: latest
nextcloud:
backup: true
sender: true
extra_tasks: true
domain: cloud.{{ apps_base_domain }}
version: 28-apache
redis_version: 7-alpine
searxng:
backup: false
sender: false
extra_tasks: true
domain: search.{{ apps_base_domain }}
version: latest
redis_version: 7-alpine
snowflake:
backup: false
sender: false
extra_tasks: false
version: latest
restic:
backup: false
sender: false
extra_tasks: false
version: '1.7.1'
watchtower:
backup: false
sender: false
extra_tasks: false
version: '1.7.1'
apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list }}"
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
apps_senders: "{{ apps_vars | dict2items | selectattr('key', 'in', apps_include) | selectattr('value.sender', 'true') | map(attribute='value.domain') | list }}"