Reorder items based on keys

This commit is contained in:
Oliver Davies 2020-08-30 21:38:40 +01:00
parent 9d3d972a3a
commit 7f1836913e

View file

@ -2,28 +2,28 @@
- name: Set the permissions for each Drupal root directory.
file:
group: www-data
state: directory
path: "{{ item.root }}"
owner: "{{ drupal_permissions.user }}"
recurse: true
mode: ug=rX,o=
owner: "{{ drupal_permissions.user }}"
path: "{{ item.root }}"
recurse: true
state: directory
with_items: "{{ drupal_permissions.sites }}"
- name: Set permissions for the defined settings files.
file:
state: file
path: "{{ item.0.root }}/{{ item.1 }}"
mode: a-X
path: "{{ item.0.root }}/{{ item.1 }}"
state: file
with_subelements:
- "{{ drupal_permissions.sites }}"
- settings_files
- name: Set permissions for the defined files directories.
file:
state: directory
path: "{{ item.0.root }}/{{ item.1 }}"
mode: ug=rwX,o=
path: "{{ item.0.root }}/{{ item.1 }}"
recurse: true
state: directory
with_subelements:
- "{{ drupal_permissions.sites }}"
- files_directories