ansible/playbook.yml
Sam A. ea7ed05ba0
Set base_domain depending on vagrant
The variable cannot be set in other places, due to this one taking
precedence.
2022-12-04 20:20:29 +01:00

24 lines
492 B
YAML

---
- hosts: all
gather_facts: true
become: true
vars:
ldap_dn: "dc=data,dc=coop"
vagrant: "{{ ansible_virtualization_role == 'guest' }}"
letsencrypt_enabled: "{{ not vagrant }}"
base_domain: "{{ 'datacoop.devel' if vagrant else 'data.coop' }}"
letsencrypt_email: "admin@{{ base_domain }}"
smtp_host: "postfix"
smtp_port: "587"
tasks:
- import_role:
name: ubuntu_base
tags:
- base_only
- import_role:
name: docker