mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-04-21 23:42:24 +02:00
18 lines
696 B
YAML
18 lines
696 B
YAML
---
|
|
- name: "Install WP Discourse plugin"
|
|
command: >
|
|
docker-compose exec -u www-data -T application
|
|
wp plugin install wp-discourse --activate
|
|
--path={{ wordpress_docker_html_path }}
|
|
args:
|
|
chdir: "{{ docker_compose.directories.instance }}"
|
|
|
|
- name: "Configure WP Discourse settings"
|
|
vars:
|
|
discourse_settings_json_b64: "{{ discourse_settings | to_json | b64encode }}"
|
|
command: >
|
|
docker-compose exec -u www-data -T application bash -lc
|
|
"wp eval \"update_option('wp_discourse_options', json_decode(base64_decode('{{ discourse_settings_json_b64 }}'), true));\" --path={{ wordpress_docker_html_path }}"
|
|
args:
|
|
chdir: "{{ docker_compose.directories.instance }}"
|