Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Fixed failure when a settings file is removed during deploy. (#34)
Browse files Browse the repository at this point in the history
Added a step to "rediscover" the settings files after code changes have
been pulled.
  • Loading branch information
markdorison authored Mar 3, 2021
1 parent a663eb4 commit 79c6b9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@
group: "{{ deploydrupal_checkout_user }}"
mode: ug-w

- name: rediscover settings files in all /sites directories in case of settings file changes.
find:
paths: "{{ deploydrupal_core_path }}/sites"
patterns: "{{ deploydrupal_settings_file_pattern }}"
depth: 2
recurse: true
register: deploydrupal_settings_files

- name: close permissions on settings files.
file:
path: "{{ settings_file.path }}"
Expand Down

0 comments on commit 79c6b9e

Please sign in to comment.