mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Added get_domain function
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
command: >
|
||||
docker-compose exec -T -u www-data application
|
||||
wp core install
|
||||
--url="{{ web_protocol }}://{{ domains[application_id][0] }}"
|
||||
--url="{{ web_protocol }}://{{ domains | get_domain(application_id)[0] }}"
|
||||
--title="{{ applications[application_id].title }}"
|
||||
--admin_user="{{ applications[application_id].users.administrator.username }}"
|
||||
--admin_password="{{ applications[application_id].credentials.administrator_password }}"
|
||||
|
@@ -5,7 +5,7 @@
|
||||
|
||||
- name: Wait for Discourse API
|
||||
wait_for:
|
||||
host: "{{ domains.discourse }}"
|
||||
host: "{{ domains | get_domain('discourse') }}"
|
||||
port: 80
|
||||
delay: 5
|
||||
timeout: 600
|
||||
|
@@ -31,6 +31,6 @@ csp:
|
||||
- "https://fonts.bunny.net"
|
||||
script-src:
|
||||
- "https://cdn.gtranslate.net"
|
||||
- "{{ domains.wordpress[0] }}"
|
||||
- "{{ domains | get_domain('wordpress') }}"
|
||||
style-src:
|
||||
- "https://fonts.bunny.net"
|
@@ -11,7 +11,7 @@ discourse_settings:
|
||||
|
||||
- name: discourse_connect
|
||||
key: url
|
||||
value: "{{ web_protocol }}://{{ domains.discourse }}"
|
||||
value: "{{ web_protocol }}://{{ domains | get_domain('discourse') }}"
|
||||
- name: discourse_connect
|
||||
key: api-key
|
||||
value: "{{ vault_discourse_api_key }}"
|
||||
|
Reference in New Issue
Block a user