Set base_domain depending on vagrant

The variable cannot be set in other places, due to this one taking
precedence.
This commit is contained in:
Sam A. 2022-12-04 20:20:09 +01:00
parent 1cc48209f1
commit ea7ed05ba0
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -3,13 +3,14 @@
gather_facts: true gather_facts: true
become: true become: true
vars: vars:
base_domain: data.coop
letsencrypt_email: admin@data.coop
ldap_dn: "dc=data,dc=coop" ldap_dn: "dc=data,dc=coop"
vagrant: "{{ ansible_virtualization_role == 'guest' }}" vagrant: "{{ ansible_virtualization_role == 'guest' }}"
letsencrypt_enabled: "{{ not vagrant }}" letsencrypt_enabled: "{{ not vagrant }}"
base_domain: "{{ 'datacoop.devel' if vagrant else 'data.coop' }}"
letsencrypt_email: "admin@{{ base_domain }}"
smtp_host: "postfix" smtp_host: "postfix"
smtp_port: "587" smtp_port: "587"