Skip to content
This repository was archived by the owner on Feb 22, 2024. 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
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ deploydrupal_npm_theme_run_commands: []

# Rebuild Drupal cache.
deploydrupal_drush_cache_rebuild: true

# Site file directory folders that need permission fixes after site install.
deploydrupal_file_permission_fix_directories:
- 'styles'
- 'media-icons'
14 changes: 13 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
mode: 0770
become: "{{ deploydrupal_files_become }}"

- name: open permissions on default directory.
- name: open permissions on site directory.
file:
path: "{{ deploydrupal_core_path }}/sites/{{ deploydrupal_site_name }}"
state: directory
Expand Down Expand Up @@ -98,6 +98,18 @@
when:
- deploydrupal_site_install

- name: adjust files directory sub-folder permissions after site install.
file:
path: "{{ deploydrupal_core_path }}/sites/{{ deploydrupal_site_name }}/files/{{ item }}"
state: directory
owner: "{{ deploydrupal_apache_user }}"
group: "{{ deploydrupal_checkout_user }}"
mode: 0770
become: "{{ deploydrupal_files_become }}"
with_items: "{{ deploydrupal_file_permission_fix_directories }}"
when:
- deploydrupal_site_install

# Import the latest configuration. This includes the latest
# configuration_split configuration. Importing this twice ensures that the
# latter command enables and disables modules based upon the most up to date
Expand Down