Add Ansible role to fix Drupal file permissions
Add a new `drupal-permissions` Ansible role that resets the file and directory permissions to match the ones described in https://www.drupal.org/node/244924. This will later be released to Ansible Galaxy, but for now it will remain in this repository until the required changes are made and the appropriate documentation is added. Fixes #191
This commit is contained in:
parent
9b26d772a8
commit
1781a2cf01
5 changed files with 44 additions and 12 deletions
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
- name: Setup directory permissions for files directories
|
||||
become: true
|
||||
file:
|
||||
path: '{{ ansistrano_shared_path }}/{{ project_web_dir }}/sites/default/files'
|
||||
state: directory
|
||||
owner: www-data
|
||||
group: root
|
||||
mode: u=rwx,g=rw,o=
|
||||
recurse: true
|
|
@ -9,6 +9,10 @@
|
|||
include_role:
|
||||
name: opdavies.drupal_settings_files
|
||||
|
||||
- name: Fix file permissions
|
||||
include_role:
|
||||
name: drupal-permissions
|
||||
|
||||
- name: Clear Drush cache
|
||||
command: >
|
||||
{{ release_drush_path }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue