24 lines
730 B
YAML
24 lines
730 B
YAML
---
|
|
- name: "Configure {{ domain }} dedicated domain"
|
|
dokku_domains:
|
|
app: "{{ app }}"
|
|
domains:
|
|
- "{{ domain }}"
|
|
state: present
|
|
when: domain is defined
|
|
|
|
- name: Provide information on domain configuration
|
|
debug:
|
|
msg:
|
|
- "Dedicated domain discovered for the deployment of {{ app }}"
|
|
- "Your application will be available at https://{{ domain }}"
|
|
when: domain is defined
|
|
|
|
- name: Provide information on sub-domain configuration
|
|
debug:
|
|
msg:
|
|
- "No dedicated domain configured for the deployment of {{ app }}"
|
|
- "Dokku will provide a sub-domain configuration"
|
|
- "Your application will be available at https://{{ app }}.{{ dokku_hostname }}"
|
|
when: domain is not defined
|