Use machine host
This commit is contained in:
parent
f8e0e01afd
commit
c936d635de
@ -49,6 +49,7 @@
|
|||||||
mariadb_addr: "dokku-mariadb-{{ app }}",
|
mariadb_addr: "dokku-mariadb-{{ app }}",
|
||||||
mariadb_user: "mariadb",
|
mariadb_user: "mariadb",
|
||||||
hostname: "{{ lookup('file', '/home/dokku/HOSTNAME') }}",
|
hostname: "{{ lookup('file', '/home/dokku/HOSTNAME') }}",
|
||||||
|
host: "{{ inventory_hostname }}",
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Debug variable dictionaries
|
- name: Debug variable dictionaries
|
||||||
@ -64,11 +65,11 @@
|
|||||||
- name: Create config variable dictionary
|
- name: Create config variable dictionary
|
||||||
set_fact:
|
set_fact:
|
||||||
config:
|
config:
|
||||||
db: "{{ hostvars[dokku.hostname].db | default([]) }}"
|
db: "{{ hostvars[dokku.host].db | default([]) }}"
|
||||||
env: "{{ hostvars[dokku.hostname].env | default([]) }}"
|
env: "{{ hostvars[dokku.host].env | default([]) }}"
|
||||||
templates: "{{ hostvars[dokku.hostname].templates | default([]) }}"
|
templates: "{{ hostvars[dokku.host].templates | default([]) }}"
|
||||||
vars: "{{ hostvars[dokku.hostname].vars | default([]) }}"
|
vars: "{{ hostvars[dokku.host].vars | default([]) }}"
|
||||||
volumes: "{{ hostvars[dokku.hostname].volumes | default([]) }}"
|
volumes: "{{ hostvars[dokku.host].volumes | default([]) }}"
|
||||||
|
|
||||||
- name: Create vault variable dictionary
|
- name: Create vault variable dictionary
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Reference in New Issue
Block a user