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
Show all changes
73 commits
Select commit Hold shift + click to select a range
3ccfe51
Defer nightly backups, disable ASG processes during syncs and run syn…
EmlynK Jan 20, 2022
a54c09c
Added deploy.yml examples for Drupal 9 and Localgov. Updated tests (#97)
DionisioFG Mar 10, 2022
223a3b5
Adding a new SimpleSAMLphp meta role. (#100)
gregharvey Mar 31, 2022
32843d5
Allowing users to set cachetool version properly. (#102)
gregharvey Apr 13, 2022
91ea64e
Deploy ami pr 1.x (#106)
gregharvey Apr 14, 2022
371b6b9
Making the MySQL dump command for routine back-ups less aggressive. (…
gregharvey Apr 20, 2022
a9cc7ad
Fix database backups pr 1.x (#109)
gregharvey Apr 20, 2022
4c4c3ad
Fix MySQL backup deferral. (#110)
EmlynK Apr 22, 2022
029848d
Files recurse fix pr 1.x (#112)
EmlynK Apr 26, 2022
b71fa83
Improve multisite support (#115)
EmlynK Apr 29, 2022
c933dc8
Static credentials handling fix pr 1.x (#119)
EmlynK May 23, 2022
b6ea020
Making contents of deploy tar 'ownerless'. (#117)
gregharvey May 31, 2022
1c2b206
Implement file syncing (#124)
EmlynK Jun 7, 2022
1cd0ed0
Create Drupal-specific sync roles (#128)
EmlynK Jun 8, 2022
904033f
Fixing GRANT query for MySQL > 8.0. (#131)
gregharvey Jun 10, 2022
94715d8
Use IF NOT EXISTS when creating database user as that command fails i…
EmlynK Jun 13, 2022
42f12c8
Attempt to fix syncs whenever the 'dump' type is used for source or t…
EmlynK Jun 16, 2022
a9c6abf
Squashfs pr 1.x (#150)
gregharvey Jun 20, 2022
a4de771
Check deploy_code.mount_type is defined when setting facts in init ro…
EmlynK Jun 24, 2022
fe2aaf1
Make config imports during syncs optional (#157)
EmlynK Jun 28, 2022
451227d
Squashfs pr 1.x (#153)
gregharvey Jun 29, 2022
c7aae71
Add cache clears to Drupal deployments, before DB updates and stuff (…
EmlynK Aug 16, 2022
15b8daa
Avoid leaving exponentially growing sqsh files in build locations! (#…
gregharvey Sep 5, 2022
5cab4ae
Exclude sqsh file pr 1.x (#167)
gregharvey Oct 6, 2022
459faba
Removing unnecessary lines in Drupal config generation. (#169)
gregharvey Oct 7, 2022
200f590
Ensuring dump directory exists on backup step. (#172)
gregharvey Oct 10, 2022
2c74432
Allowing Drupal 7 jobs to disable cron. (#174)
gregharvey Oct 14, 2022
0385211
Suppress db revert pr 1.x (#177)
gregharvey Oct 14, 2022
86f138a
Fixing bad assumption that databases will have TCP connections. (#179)
gregharvey Nov 18, 2022
b236540
Handling the 'drush deploy' command more elegantly for Drupal 8+. (#180)
gregharvey Dec 9, 2022
58069b6
Attempt to clear the opcache during Drupal deployments. (#182)
gregharvey Dec 9, 2022
3ea0bfe
Better drush deploy support pr 1.x (#185)
gregharvey Dec 9, 2022
b835344
Cron job schedule params pr 1.x (#190)
tymofiisobchenko Dec 30, 2022
e97e852
Adding option to stop services that might interfere with a squashfs m…
gregharvey Jan 23, 2023
282f5c0
Updating docs.
gregharvey Jan 24, 2023
0afd940
Consistent drush handling in cron.
gregharvey Jan 24, 2023
566efe9
Linting cruft and removing unimplemented drush.yml handling from D7.
gregharvey Jan 24, 2023
27b178d
Refactor drush role to support new GitHub release format.
gregharvey Jan 24, 2023
55c0d24
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
7bc602f
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
1f6fae4
Updating drush README.
gregharvey Jan 24, 2023
39b0870
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
064278b
Casting the first part of the drush version string as an integer.
gregharvey Jan 24, 2023
4536739
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
6e358bc
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
2717f10
Refactoring integer handling.
gregharvey Jan 24, 2023
89f266d
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
84cc81f
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
7d874c2
Major version string will always be a string, assuming below 8 will n…
gregharvey Jan 24, 2023
dae6fe2
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
e92b40b
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
3a12d1d
Downloaded drush archive is remote, not local.
gregharvey Jan 24, 2023
c800b35
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
e6920da
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
8bf5096
Refactoring handling of .bin directory.
gregharvey Jan 24, 2023
b30313c
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
fd3dac1
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 24, 2023
af3fc46
Supporting drush-launcher.
gregharvey Jan 25, 2023
e6a3265
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
637591d
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
4a16a5d
Removing drush installation support for Drupal 8 and above.
gregharvey Jan 25, 2023
fa783f3
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
d3f078e
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
0a78b6b
Bad variable name in Drupal cron jobs.
gregharvey Jan 25, 2023
3baf372
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
5a92fc0
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
d171218
Fixing maintenance mode command linting and consistency.
gregharvey Jan 25, 2023
2bcc1a7
Merge branch 'devel' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
aeb31cd
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
148152f
Moving chdir to args to see if it helps.
gregharvey Jan 25, 2023
12a4b24
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
4b1c4d0
Trying an actual 'cd' command inline.
gregharvey Jan 25, 2023
7d91e79
Merge branch 'drush_refactor' into drush_refactor-PR-devel
gregharvey Jan 25, 2023
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
2 changes: 1 addition & 1 deletion roles/_init/tasks/drupal7.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Define Drush path.
set_fact:
drush_bin: "{{ drush_bin | default('{{ bin_directory }}/drush') }}"
drush_bin: "{{ drush_bin | default('{{ bin_directory }}/drush.phar') }}"

- name: Ensure we have Drush binary.
import_role:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- include_tasks: "{{ maintenance_mode.operation }}.yml"
- ansible.builtin.include_tasks: "{{ maintenance_mode.operation }}.yml"
with_items: "{{ drupal.sites }}"
loop_control:
loop_var: site
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
# @todo this needs refactoring for multisite.
- name: Enable maintenance mode.
command:
cmd: "{{ drush_bin }} -l {{ site.folder }} state:set system.maintenance_mode 1 --input-format=integer"
ansible.builtin.command:
cmd: "cd {{ live_symlink_dest }}/{{ webroot }}/sites/{{ site.folder }} && {{ drush_bin }} -l {{ site.folder }} state:set system.maintenance_mode 1 --input-format=integer"
args:
chdir: "{{ live_symlink_dest }}/{{ webroot }}/sites/{{ site.folder }}"
become: "{{ 'no' if www_user == deploy_user else 'yes' }}"
become_user: "{{ www_user }}"
Expand All @@ -11,8 +11,9 @@
- project_type == 'drupal8'

- name: Enable maintenance mode D7.
shell:
ansible.builtin.command:
cmd: "{{ drush_bin }} -l {{ site.folder }} vset maintenance_mode 1"
args:
chdir: "{{ live_symlink_dest }}/{{ webroot }}/sites/{{ site.folder }}"
become: "{{ 'no' if www_user == deploy_user else 'yes' }}"
become_user: "{{ www_user }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
---
- name: Disable maintenance mode.
command:
cmd: "{{ drush_bin }} -l {{ site.folder }} state:set system.maintenance_mode 0 --input-format=integer"
ansible.builtin.command:
cmd: "cd {{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }} && {{ drush_bin }} -l {{ site.folder }} state:set system.maintenance_mode 0 --input-format=integer"
args:
chdir: "{{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }}"
become: "{{ 'no' if www_user == deploy_user else 'yes' }}"
become_user: "{{ www_user }}"
when:
- project_type == 'drupal8'

- name: Disable maintenance mode D7.
shell:
ansible.builtin.command:
cmd: "{{ drush_bin }} -l {{ site.folder }} vset maintenance_mode 0"
args:
chdir: "{{ deploy_path }}/{{ webroot }}/sites/{{ site.folder }}"
become: "{{ 'no' if www_user == deploy_user else 'yes' }}"
become_user: "{{ www_user }}"
Expand Down