---

# ---
# vars used by roles/ansible_dependencies
# ---


# ---
# vars used by roles/ansible_user
# ---


# ---
# vars used by roles/common/tasks/basic.yml
# ---


# ---
# vars used by roles/common/tasks/sshd.yml
# ---


# ---
# vars used by roles/common/tasks/apt.yml
# ---

install_compiler_pkgs: true

install_postgresql_pkgs: true


# ---
# vars used by roles/common/tasks/systemd-resolved.yml
# ---

systemd_resolved: true

# CyberGhost - Schnelle Verbindung mit Keine-Logs-Datenschutzrichtlinie
#   Primäre DNS-Adresse: 38.132.106.139
#   Sekundäre DNS-Adresse: 194.187.251.67
#
# Cloudflare (USA) Bester kostenloser DNS-Server für Gaming mit zuverlässigen Verbindungen
#   primäre DNS-Adresse
#      IPv4: 1.1.1.1
#      IPv6: 2606:4700:4700::1111
#   sekundäre DNS-Adresse
#      IPv4: 1.0.0.1
#      IPv6: 2606:4700:4700::1001
#
# Google (USA) Public DNS - Großartige Kombination aus Geschwindigkeit und Sicherheit
#   primäre DNS-Adresse
#      IPv4: 8.8.8.8
#      IPv6: 2001:4860:4860::8888
#   sekundäre DNS-Adresse
#      IPv4: 8.8.4.4
#      IPv6: 2001:4860:4860::8844
#
# Quad9 (CH) - Blockiert mühelos schädliche Seiten und verhindert Phishing-Betrug
#   primäre DNS-Adresse
#      IPv4: 9.9.9.9
#      IPv6: 2620:fe::fe
#   sekundäre DNS-Adresse
#      IPv4: 149.112.112.112
#      IPv6: 2620:fe::9
#
# OpenNIC - https://www.opennic.org/
#      IPv4: 195.10.195.195 - ns31.de
#      IPv4: 94.16.114.254  - ns28.de
#      IPv4: 51.254.162.59  - ns9.de
#      IPv4: 194.36.144.87  - ns29.de
#      IPv6: 2a00:f826:8:2::195 - ns31.de
#
# Freifunk München (normales DNS, DNS-over-TLS und DNS-over-HTTPS)
#    IPv4: 5.1.66.255
#    IPv6: 2001:678:e68:f000::
#    Servername für DNS-over-TLS: dot.ffmuc.net
#    IPv4: 185.150.99.255
#    IPv6: 2001:678:ed0:f000::
#    Servername für DNS-over-TLS: dot.ffmuc.net
#    für iOS 14+: DoT-Server-Konfiguration (unsigniert, vom PrHdb)
resolved_nameserver:
   - 192.168.10.1
   - 192.168.10.3

# search domains
#
# If there are more than one search domains, then specify them here in the order in which
# the resolver should also search them
#
#resolved_domains: []
resolved_domains:
  - ~.
  - ga.netz
  - ga.intra

resolved_dnssec: false

# dns.as250.net: 194.150.168.168
#
resolved_fallback_nameserver:
  - 192.168.11.1


# ---
# vars used by roles/common/tasks/users.yml
# ---

insert_root_ssh_keypair: true

root_ssh_keypair:
  - name: id-rsa-dehydrated
    priv_key_src: ga-st-mail/root/.ssh/ga-st-mail-id_rsa-dehydrated
    priv_key_dest: /root/.ssh/id_rsa-dehydrated
    pub_key_src: ga-st-mail/root/.ssh/ga-st-mail-id_rsa-dehydrated.pub
    pub_key_dest: /root/.ssh/id_rsa-dehydrated.pub
  - name: id-rsa-opendkim
    priv_key_src: ga-st-mail/root/.ssh/ga-st-mail-id_rsa-opendkim
    priv_key_dest: /root/.ssh/id_rsa-opendkim
    pub_key_src: ga-st-mail/root/.ssh/ga-st-mail-id_rsa-opendkim.pub
    pub_key_dest: /root/.ssh/id_rsa-opendkim.pub


# ---
# vars used by roles/common/tasks/users-systemfiles.yml
# ---


# ---
# vars used by roles/common/tasks/webadmin-user.yml
# ---


# ---
# vars used by roles/common/tasks/sudoers.yml
# ---
#
# see: roles/common/tasks/vars


# ---
# vars used by roles/common/tasks/caching-nameserver.yml
# ---

install_bind_packages: true


bind9_gateway_acl:
  - local-net:
    name: local-net
    entries:
      - 127.0.0.0/8
      - 172.16.0.0/12
      - 192.168.0.0/16
      - 10.0.0.0/8
      - fc00::/7
      - fe80::/10
      - ::1/128
  - internaldns:
    name: internaldns
    entries:
      - '# Nameserver Gateway Stockhausen'
      - 192.168.11.1
      - '# Domain Controller Stockhausen'
      - 192.168.10.3
      - '# Nameserver Gateway Altenschlirf'
      - 192.168.10.1
      - '# Domain Controller Altenschlirf'
      - 192.168.10.3
      - 192.168.10.6
      - 172.16.0.1
      - '# Nameserver Gateway Novalishaus'
      - 192.168.81.1
      - 10.2.11.2
      - '# Nameserver wolle'
      - 10.113.12.3
      - '# Postfix Mailserver'
      - 192.168.11.2
      - '# Mail Relay System'
      - 192.168.10.2



bind9_gateway_listen_on_v6:
   - none

bind9_gateway_listen_on:
  - any

#bind9_gateway_allow_transfer: {}
bind9_gateway_allow_transfer:
   - none

bind9_transfer_source:  !!str "192.168.10.2"
bind9_notify_source: !!str "192.168.10.2"

#bind9_gateway_allow_query: {}
bind9_gateway_allow_query:
  - local-net

#bind9_gateway_allow_query_cache: {}
bind9_gateway_allow_query_cache:
  - local-net

bind9_gateway_recursion:  !!str "yes"
#bind9_gateway_allow_recursion: {}
bind9_gateway_allow_recursion:
  - local-net


# ---
# vars used by roles/common/tasks/git.yml
# ---
#
# see: roles/common/tasks/vars


# ---
# vars used by roles/common/tasks/copy_files.yml
# ---


copy_plain_files_postfix_host_specific:

  - name: relay_domains
    src_path: ga-al-relay/etc/postfix/relay_domains
    dest_path: /etc/postfix/relay_domains


copy_template_files: []
#
#  - name: mailsystem_install_amavis.conf
#    src_path: usr/local/src/mailsystem/conf/install_amavis.conf.j2
#    dest_path: /usr/local/src/mailsystem/conf/install_amavis.conf



# ---
# vars used by roles/common/tasks/config_files_mailsystem_scripts.yml
# ---

hostname: ga-al-relay.ga.netz
ipv4_address: 192.168.10.2
#ipv6_address: 

admin_email: it@gemeinschaft-altenschlirf.org
is_relay_host: !!str "false"
sasl_auth_enable: !!str "yes"



template_files_mailsystem_script:

  - name: mailsystem_install_postfix_advanced.conf
    src_path: usr/local/src/mailsystem/conf/install_postfix_advanced.conf.j2
    dest_path: /usr/local/src/mailsystem/conf/install_postfix_advanced.conf

  - name: mailsystem_install_amavis.conf
    src_path: usr/local/src/mailsystem/conf/install_amavis.conf.j2
    dest_path: /usr/local/src/mailsystem/conf/install_amavis.conf
