Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. secret_root: '{{ inventory_dir | realpath }}'
  2. secret_name: 'secret'
  3. secret: '{{ secret_root + "/" + secret_name }}'
  4. # must match values in roles/common
  5. db_admin_username: 'postgres'
  6. db_admin_password: "{{ lookup('password', secret + '/' + 'db_admin_password length=32') }}"
  7. mail_db_username: 'mailuser'
  8. mail_db_password: "{{ lookup('password', secret + '/' + 'mail_db_password length=32') }}"
  9. mail_db_database: 'mailserver'
  10. mail_server_subdomain: "mail"
  11. mail_server_hostname: "{{ mail_server_subdomain }}.{{ domain }}"
  12. mail_server_autoconfig_hostname: "autoconfig.{{ domain }}"
  13. mail_header_privacy: 1
  14. friendly_networks:
  15. - ""
  16. virtual_domains:
  17. - name: "{{ domain }}"
  18. doc_root: "/var/www/{{ domain }}"
  19. mail_virtual_users:
  20. - account: "{{ main_user_name }}"
  21. domain: "{{ domain }}"
  22. password: "{{ lookup('password', secret + '/' + 'mail_main_user_password length=20') | doveadm_pw_hash }}"
  23. sendonly: 0
  24. mail_virtual_aliases:
  25. - source: "root@{{ domain }}"
  26. destination: "{{ admin_email }}"
  27. - source: "postmaster@{{ domain }}"
  28. destination: "{{ admin_email }}"
  29. - source: "webmaster@{{ domain }}"
  30. destination: "{{ admin_email }}"
  31. - source: "abuse@{{ domain }}"
  32. destination: "{{ admin_email }}"
  33. zpush_timezone: "{{ common_timezone | default('Etc/UTC') }}"