Skip to content
Snippets Groups Projects
Verified Commit d216b6ab authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

change the mu_plugins structure to make more sense when you use it with Ansible

parent ad51c9a0
No related branches found
No related tags found
1 merge request!102Resolve "Custom plugin for WP"
Pipeline #11578 passed with stage
in 49 seconds
......@@ -87,12 +87,10 @@ wordpress:
mu_plugins_enabled: false
mu_plugins_dir: mu-plugins
mu_plugins:
block-bad-queries:
name: Block Bad Queries
- name: Block Bad Queries
phpfile: block-bad-queries.php
url: https://downloads.wordpress.org/plugin/block-bad-queries.20200319.zip
stackspin:
name: Stackspin
- name: Stackspin
phpfile: stackspin-plugin.php
url: https://github.com/level73/stackspin-plugin/archive/refs/heads/main.zip
......
......@@ -24,7 +24,7 @@
- name: Fetch and unzip plugins in-place
shell: curl -L {{ wp_mu_plugin.url }} | unzip -q -o -d {{ WP_CONTENT_MOUNT }}/{{ WP_MU_PLUGINS_DIR }} -
loop: "{{ WP_MU_PLUGINS | dict2items }}"
loop: "{{ WP_MU_PLUGINS }}"
loop_control:
loop_var: wp_mu_plugin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment