diff --git a/roles/web-app-wordpress/files/mu-plugins/infinito-http-ca-trust.php b/roles/web-app-wordpress/files/mu-plugins/infinito-http-ca-trust.php new file mode 100644 index 0000000000..42ec147bb1 --- /dev/null +++ b/roles/web-app-wordpress/files/mu-plugins/infinito-http-ca-trust.php @@ -0,0 +1,24 @@ + + container cp + {{ [role_path, 'files/mu-plugins/infinito-http-ca-trust.php'] | path_join }} + {{ WORDPRESS_CONTAINER }}:{{ WORDPRESS_DOCKER_HTML_PATH }}/wp-content/mu-plugins/infinito-http-ca-trust.php + register: cp_ca_trust_mu_plugin + changed_when: cp_ca_trust_mu_plugin.rc == 0 + failed_when: cp_ca_trust_mu_plugin.rc != 0 + +- name: "Ensure WordPress user owns the CA-trust mu-plugin file" + command: > + container exec {{ WORDPRESS_CONTAINER }} + chown {{ WORDPRESS_USER }}:{{ WORDPRESS_USER }} + {{ WORDPRESS_DOCKER_HTML_PATH }}/wp-content/mu-plugins/infinito-http-ca-trust.php + changed_when: false