mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Semi bsr for applications[] to prevent heavy to debug bugs in j2 - part 1
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
docker-compose exec -T -u www-data application
|
||||
wp core install
|
||||
--url="{{ domains | get_url(application_id, web_protocol) }}"
|
||||
--title="{{ applications[application_id].title }}"
|
||||
--admin_user="{{ applications[application_id].users.administrator.username }}"
|
||||
--admin_password="{{ applications[application_id].credentials.administrator_password }}"
|
||||
--admin_email="{{ applications[application_id].users.administrator.email }}"
|
||||
--title="{{ applications | get_app_conf(application_id, 'title', True) }}"
|
||||
--admin_user="{{ applications | get_app_conf(application_id, 'users.administrator.username', True) }}"
|
||||
--admin_password="{{ applications | get_app_conf(application_id, 'credentials.administrator_password', True) }}"
|
||||
--admin_email="{{ applications | get_app_conf(application_id, 'users.administrator.email', True) }}"
|
||||
--path="{{ wordpress_docker_html_path }}"
|
||||
args:
|
||||
chdir: "{{ docker_compose.directories.instance }}"
|
||||
|
@@ -6,7 +6,7 @@
|
||||
- name: "Include role srv-proxy-6-6-domain for {{ application_id }}"
|
||||
include_role:
|
||||
name: srv-proxy-6-6-domain
|
||||
loop: "{{ applications[application_id].domains.canonical }}"
|
||||
loop: "{{ applications | get_app_conf(application_id, 'domain', True)s.canonical }}"
|
||||
loop_control:
|
||||
loop_var: domain
|
||||
vars:
|
||||
@@ -33,7 +33,7 @@
|
||||
block:
|
||||
- name: "Iterate through WordPress plugins"
|
||||
include_tasks: plugin.yml
|
||||
loop: "{{ applications[application_id].plugins | dict2items }}"
|
||||
loop: "{{ applications | get_app_conf(application_id, 'plugins', True) | dict2items }}"
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
vars:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
FROM wordpress:{{applications[application_id].version}}
|
||||
FROM wordpress:{{applications | get_app_conf(application_id, 'version', True)}}
|
||||
|
||||
# Install msmtp and update system
|
||||
RUN apt-get update && \
|
||||
|
Reference in New Issue
Block a user