This repository has been archived on 2020-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-13 09:42:33 +00:00
|
|
|
---
|
2020-04-13 13:02:55 +00:00
|
|
|
- name: "Configure {{ domain }} dedicated domain"
|
2020-04-13 09:42:33 +00:00
|
|
|
dokku_domains:
|
|
|
|
app: "{{ app }}"
|
|
|
|
domains:
|
|
|
|
- "{{ domain }}"
|
|
|
|
state: present
|
2020-04-13 10:49:14 +00:00
|
|
|
when: domain is defined
|
2020-04-13 13:02:55 +00:00
|
|
|
|
|
|
|
- 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
|