Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/roles/_init.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ deploy_user: "deploy"
# for MySQL CE you might want to add '--set-gtid-purged=OFF --skip-definer' here
_mysqldump_params: "--max-allowed-packet=128M --single-transaction --skip-opt -e --quick --skip-disable-keys --skip-add-locks -C -a --add-drop-table"
drupal:
drush_verbose_output: false
sites:
- folder: "default"
public_files: "sites/default/files"
Expand Down
1 change: 1 addition & 0 deletions roles/_init/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ deploy_user: "deploy"
# for MySQL CE you might want to add '--set-gtid-purged=OFF --skip-definer' here
_mysqldump_params: "--max-allowed-packet=128M --single-transaction --skip-opt -e --quick --skip-disable-keys --skip-add-locks -C -a --add-drop-table"
drupal:
drush_verbose_output: false
sites:
- folder: "default"
public_files: "sites/default/files"
Expand Down
1 change: 1 addition & 0 deletions roles/_init/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ deploy_user: "deploy"
# for MySQL CE you might want to add '--set-gtid-purged=OFF --skip-definer' here
_mysqldump_params: "--max-allowed-packet=128M --single-transaction --skip-opt -e --quick --skip-disable-keys --skip-add-locks -C -a --add-drop-table"
drupal:
drush_verbose_output: false
sites:
- folder: "default"
public_files: "sites/default/files"
Expand Down
9 changes: 8 additions & 1 deletion roles/cache_clear/cache_clear-drupal8/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: Clear Drupal cache.
command:
ansible.builtin.command:
cmd: "{{ drush_bin }} -l {{ site.folder }} -y cr"
chdir: "{{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }}"
become: "{{ 'no' if www_user == deploy_user else 'yes' }}"
Expand All @@ -9,3 +9,10 @@
loop_control:
loop_var: site
run_once: true
register: _drush_output

- name: Show drush output.
ansible.builtin.debug:
msg: "{{ _drush_output }}"
when: drupal.drush_verbose_output

19 changes: 19 additions & 0 deletions roles/database_apply/database_apply-drupal8/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
loop_control:
loop_var: site
when: (previous_build_number == 0) or (site.force_install is defined and site.force_install)
register: _drush_output

- name: Show drush output.
ansible.builtin.debug:
msg: "{{ _drush_output }}"
when: drupal.drush_verbose_output

- name: Fix permissions on Drupal directory.
ansible.builtin.file:
Expand Down Expand Up @@ -54,6 +60,12 @@
loop_control:
loop_var: site
when: site.config_import_command != 'deploy'
register: _drush_output

- name: Show drush output.
ansible.builtin.debug:
msg: "{{ _drush_output }}"
when: drupal.drush_verbose_output

- name: Import configuration.
ansible.builtin.command:
Expand All @@ -67,3 +79,10 @@
when:
- previous_build_number > 0
- site.config_import_command
register: _drush_output

- name: Show drush output.
ansible.builtin.debug:
msg: "{{ _drush_output }}"
when: drupal.drush_verbose_output

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
with_items: "{{ drupal.sites }}"
loop_control:
loop_var: site
register: _drush_output

- name: Show drush output.
ansible.builtin.debug:
msg: "{{ _drush_output }}"
when: drupal.drush_verbose_output

# This only runs if the sync_config_import variable is not defined or it is defined and is true. If it's defined and false, this won't run.
- name: Import configuration.
Expand All @@ -31,6 +37,12 @@
when:
- site.config_import_command
- site.sync_config_import is not defined or site.sync_config_import
register: _drush_output

- name: Show drush output.
ansible.builtin.debug:
msg: "{{ _drush_output }}"
when: drupal.drush_verbose_output

- name: Clear the cache.
ansible.builtin.include_role:
Expand Down