Skip to content
Snippets Groups Projects
Commit 58d1470e authored by František Dvořák's avatar František Dvořák
Browse files

EGI devel: tune email config

parent 85b05a1c
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@
inet_protocols: ipv4
set_fact:
main: '{{ main | combine(main_cesnet) }}'
when: site_name == "cesnet-testing" or site_name == "cesnet-mcc"
when: site_name is regex('^(cesnet|egi)-')
- name: Site-specific postfix settings - mail_fromdomain
set_fact:
main: '{{ main | combine({"myhostname": mail_fromdomain}) }}'
......@@ -90,7 +90,7 @@
src: templates/etc/mailutils.conf
dest: /etc/mailutils.conf
mode: 0644
when: (site_name == "cesnet-testing" or site_name == "cesnet-mcc" or mail_fromdomain is defined) and not (mail_local | default(false))
when: (site_name is regex('^(cesnet|egi)-') or mail_fromdomain is defined) and not (mail_local | default(false))
rescue:
- name: Mail Settings Fail
fail:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment