---
- name: "Configure {{ config.vars.domain }} dedicated domain"
dokku_domains:
app: "{{ dokku.app }}"
domains:
- "{{ config.vars.domain }}"
state: present
when: "'domain' in config.vars"