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/_Sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- [LHCI run](/roles/lhci_run)
- [Maintenance Mode](/roles/maintenance_mode)
- ["Meta"](/roles/_meta)
- [Drupal 10](/roles/_meta/deploy-drupal10)
- [Drupal 7](/roles/_meta/deploy-drupal7)
- [Drupal 8](/roles/_meta/deploy-drupal8)
- [Matomo](/roles/_meta/deploy-matomo)
Expand Down
19 changes: 19 additions & 0 deletions docs/roles/_meta/deploy-drupal10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Drupal 10
Role for deploying single Drupal instances, or multisites with a single database, of Drupal version 10.0.0 or higher.

You should always top and tail this role with the `_init` and `_exit` roles and include the files with your Ansible variable overrides in via `vars_files`, here is an example playbook:

```yaml
---
- hosts: web1.example.com
vars_files:
- vars/common.yml
- vars/prod.yml
roles:
- _init
- _meta/deploy-drupal10
- _exit
```

<!--ROLEVARS-->
<!--ENDROLEVARS-->
19 changes: 19 additions & 0 deletions roles/_meta/deploy-drupal10/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Drupal 10
Role for deploying single Drupal instances, or multisites with a single database, of Drupal version 10.0.0 or higher.

You should always top and tail this role with the `_init` and `_exit` roles and include the files with your Ansible variable overrides in via `vars_files`, here is an example playbook:

```yaml
---
- hosts: web1.example.com
vars_files:
- vars/common.yml
- vars/prod.yml
roles:
- _init
- _meta/deploy-drupal10
- _exit
```

<!--ROLEVARS-->
<!--ENDROLEVARS-->
39 changes: 39 additions & 0 deletions roles/_meta/deploy-drupal10/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# Default role for Drupal 10 and upwards. This is suitable for:
# - single site
# - multisites with a single database

- ansible.builtin.import_role:
name: deploy_code
- ansible.builtin.import_role:
name: composer
- ansible.builtin.import_role:
name: npm
- ansible.builtin.import_role:
name: maintenance_mode
vars:
maintenance_mode:
operation: offline
- ansible.builtin.import_role:
name: database_backup
- ansible.builtin.import_role:
name: config_generate
- ansible.builtin.import_role:
name: cache_clear/cache_clear-opcache
- ansible.builtin.import_role:
name: database_apply
- ansible.builtin.import_role:
name: sanitize/admin_creds
- ansible.builtin.import_role:
name: live_symlink
- ansible.builtin.import_role:
name: cache_clear/cache_clear-drupal8
- ansible.builtin.import_role:
name: maintenance_mode
vars:
maintenance_mode:
operation: online
- ansible.builtin.import_role:
name: cron/cron_database_backup
- ansible.builtin.import_role:
name: cron/cron_drupal8