Move to dictionary vars strategy

This commit is contained in:
Luke Murphy
2020-04-14 13:44:09 +02:00
parent 618ae495b2
commit 5e9cc84e8b
10 changed files with 43 additions and 41 deletions

View File

@ -1,8 +1,8 @@
---
- name: "Configure {{ vars.domain }} dedicated domain"
- name: "Configure {{ config.vars.domain }} dedicated domain"
dokku_domains:
app: "{{ dokku.app }}"
domains:
- "{{ vars.domain }}"
- "{{ config.vars.domain }}"
state: present
when: vars.domain is defined
when: "'domain' in config.vars"