Skip to content

Commit 0b39b64

Browse files
authored
Ensuring we can prevent features and ctools deployments in Drupal 7. (#240)
1 parent 459689f commit 0b39b64

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

roles/_init/defaults/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ drupal:
1414
# End Drupal 8 variables
1515
# Drupal 7 variables
1616
revert_features_command: "" # i.e. "fra"
17+
revert_ctools: true
1718
# End Drupal 7 variables
1819
sanitize_command: "sql-sanitize"
1920
base_url: https://www.example.com
@@ -25,4 +26,4 @@ drupal:
2526
mautic:
2627
image_path: "media/images"
2728
force_install: false
28-
bin_directory: "/home/{{ deploy_user }}/.bin"
29+
bin_directory: "/home/{{ deploy_user }}/.bin"

roles/database_apply/database_apply-drupal7/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@
4444
loop_var: site
4545
when:
4646
- previous_build_number > 0
47-
- site.revert_features_command
47+
- site.revert_features_command | length > 0
4848

4949
- name: Revert Drupal configuration with Ctools.
5050
ansible.builtin.include_tasks: ctools.yml
5151
with_items: "{{ drupal.sites }}"
5252
loop_control:
5353
loop_var: site
54+
when:
55+
- site.revert_ctools

0 commit comments

Comments
 (0)