Stagger creation of dictionaries
This commit is contained in:
		| @ -41,7 +41,21 @@ | ||||
|       - yml | ||||
|   register: vault_include | ||||
|  | ||||
| - name: Create the variable dictionaries | ||||
| - name: Create the dokku variable dictionary | ||||
|   set_fact: | ||||
|     dokku: | ||||
|       { | ||||
|         app: "{{ app }}", | ||||
|         mariadb_addr: "dokku-mariadb-{{ app }}", | ||||
|         mariadb_user: "mariadb", | ||||
|         hostname: "{{ lookup('file', '/home/dokku/HOSTNAME') }}", | ||||
|       } | ||||
|  | ||||
| - name: Create the vault variable dictionary | ||||
|   set_fact: | ||||
|     vault: "{{ vault_include.ansible_facts }}" | ||||
|  | ||||
| - name: Create the config variable dictionary | ||||
|   set_fact: | ||||
|     config: | ||||
|       { | ||||
| @ -50,14 +64,6 @@ | ||||
|         "env": "{{ config_include.ansible_facts.env | default([]) }}", | ||||
|         "volumes": "{{ config_include.ansible_facts.volumes | default([]) }}", | ||||
|         "templates": "{{ config_include.ansible_facts.templates | default([]) }}", | ||||
|         "vault": "{{ vault_include.ansible_facts }}", | ||||
|       } | ||||
|     dokku: | ||||
|       { | ||||
|         app: "{{ app }}", | ||||
|         mariadb_addr: "dokku-mariadb-{{ app }}", | ||||
|         mariadb_user: "mariadb", | ||||
|         hostname: "{{ lookup('file', '/home/dokku/HOSTNAME') }}", | ||||
|       } | ||||
|  | ||||
| - name: Debug variable dictionaries | ||||
|  | ||||
		Reference in New Issue
	
	Block a user