---
- name: "Configure {{ domain }} domain with Dokku"
dokku_domains:
app: "{{ app }}"
domains:
- "{{ domain }}"
state: present
when: domain is defined