oliverdavies.uk-drupal-old/tools/deployment/roles/drupal-permissions/tasks/main.yml

33 lines
782 B
YAML
Raw Normal View History

2021-03-14 18:16:46 +00:00
---
- name: Set the permissions for each Drupal root directory.
file:
2021-12-08 21:36:53 +00:00
group: ubuntu
2021-03-14 18:16:46 +00:00
mode: ug=rX,o=
owner: "{{ drupal_permissions.user }}"
path: "{{ item.root }}"
recurse: true
state: directory
with_items: "{{ drupal_permissions.sites }}"
2021-11-28 21:51:43 +00:00
become: true
2021-03-14 18:16:46 +00:00
- name: Set permissions for the defined settings files.
file:
mode: a-X
path: "{{ item.0.root }}/{{ item.1 }}"
state: file
with_subelements:
- "{{ drupal_permissions.sites }}"
- settings_files
2021-11-28 21:51:43 +00:00
become: true
2021-03-14 18:16:46 +00:00
- name: Set permissions for the defined files directories.
file:
mode: ug=rwX,o=
path: "{{ item.0.root }}/{{ item.1 }}"
recurse: true
state: directory
with_subelements:
- "{{ drupal_permissions.sites }}"
- files_directories
2021-11-28 21:51:43 +00:00
become: true