lab-ansible/roles/apps/defaults/main.yml
2023-11-13 21:17:17 +01:00

69 lines
1.7 KiB
YAML

# vim: ft=yaml.ansible
# code: language=ansible
---
apps_data_root: "{{ data_fs }}/apps"
apps_local_domain: local.{{ apps_base_domain }}
apps_shared_docker_network: apps_network
apps_postfix_docker_network: postfix_network
apps_vars:
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.23.0
monerod:
backup: false
sender: false
extra_tasks: false
domain: xmr.{{ apps_local_domain }}
version: latest
nextcloud:
backup: true
sender: true
extra_tasks: true
domain: cloud.{{ apps_base_domain }}
version: 27-apache
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.0'
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('value.sender', 'true') | map(attribute='key') | list | intersect(apps_include) }}"