mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-16 08:56:46 +02:00
Optimized wordpress variables
This commit is contained in:
parent
f72ac30884
commit
f6e62525d1
@ -6,7 +6,7 @@
|
|||||||
- name: "Include role srv-proxy-6-6-domain for {{ application_id }}"
|
- name: "Include role srv-proxy-6-6-domain for {{ application_id }}"
|
||||||
include_role:
|
include_role:
|
||||||
name: srv-proxy-6-6-domain
|
name: srv-proxy-6-6-domain
|
||||||
loop: "{{ applications | get_app_conf(application_id, 'server.domains.canonical', True) }}"
|
loop: "{{ wordpress_domains }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: domain
|
loop_var: domain
|
||||||
vars:
|
vars:
|
||||||
@ -25,15 +25,14 @@
|
|||||||
dest: "{{ host_msmtp_conf }}"
|
dest: "{{ host_msmtp_conf }}"
|
||||||
notify: docker compose up
|
notify: docker compose up
|
||||||
|
|
||||||
|
|
||||||
- name: "Install wordpress"
|
- name: "Install wordpress"
|
||||||
include_tasks: install.yml
|
include_tasks: install.yml
|
||||||
|
|
||||||
- name: "Install and activate WordPress plugins from application config"
|
- name: "Install and activate WordPress plugins"
|
||||||
block:
|
block:
|
||||||
- name: "Iterate through WordPress plugins"
|
- name: "Iterate through WordPress plugins"
|
||||||
include_tasks: plugin.yml
|
include_tasks: plugin.yml
|
||||||
loop: "{{ applications | get_app_conf(application_id, 'plugins', True) | dict2items }}"
|
loop: "{{ wordpress_plugins }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.key }}"
|
label: "{{ item.key }}"
|
||||||
vars:
|
vars:
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
|
# General
|
||||||
application_id: "web-app-wordpress"
|
application_id: "web-app-wordpress"
|
||||||
database_type: "mariadb"
|
database_type: "mariadb"
|
||||||
host_msmtp_conf: "{{docker_compose.directories.config}}msmtprc.conf"
|
host_msmtp_conf: "{{docker_compose.directories.config}}msmtprc.conf"
|
||||||
|
|
||||||
|
# Wordpress Specific
|
||||||
wordpress_max_upload_size: "{{ applications | get_app_conf(application_id, 'max_upload_size') }}"
|
wordpress_max_upload_size: "{{ applications | get_app_conf(application_id, 'max_upload_size') }}"
|
||||||
wordpress_custom_image: "wordpress_custom"
|
wordpress_custom_image: "wordpress_custom"
|
||||||
wordpress_docker_html_path: "/var/www/html"
|
wordpress_docker_html_path: "/var/www/html"
|
||||||
wordpress_version: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.version', True) }}"
|
wordpress_version: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.version', True) }}"
|
||||||
wordpress_image: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.image', True) }}"
|
wordpress_image: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.image', True) }}"
|
||||||
wordpress_name: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.name', True) }}"
|
wordpress_name: "{{ applications | get_app_conf(application_id, 'docker.services.wordpress.name', True) }}"
|
||||||
wordpress_volume: "{{ applications | get_app_conf(application_id, 'docker.volumes.data', True) }}"
|
wordpress_volume: "{{ applications | get_app_conf(application_id, 'docker.volumes.data', True) }}"
|
||||||
|
wordpress_domains: "{{ applications | get_app_conf(application_id, 'server.domains.canonical', True) }}"
|
||||||
|
wordpress_plugins: "{{ applications | get_app_conf(application_id, 'plugins', True) | dict2items }}"
|
Loading…
x
Reference in New Issue
Block a user