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.
dokku-ansible-deploy/plays/lib/domain.yml
2020-04-13 15:02:55 +02:00

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