Reorder items based on keys
This commit is contained in:
parent
9d3d972a3a
commit
7f1836913e
|
@ -2,28 +2,28 @@
|
||||||
- name: Set the permissions for each Drupal root directory.
|
- name: Set the permissions for each Drupal root directory.
|
||||||
file:
|
file:
|
||||||
group: www-data
|
group: www-data
|
||||||
state: directory
|
|
||||||
path: "{{ item.root }}"
|
|
||||||
owner: "{{ drupal_permissions.user }}"
|
|
||||||
recurse: true
|
|
||||||
mode: ug=rX,o=
|
mode: ug=rX,o=
|
||||||
|
owner: "{{ drupal_permissions.user }}"
|
||||||
|
path: "{{ item.root }}"
|
||||||
|
recurse: true
|
||||||
|
state: directory
|
||||||
with_items: "{{ drupal_permissions.sites }}"
|
with_items: "{{ drupal_permissions.sites }}"
|
||||||
|
|
||||||
- name: Set permissions for the defined settings files.
|
- name: Set permissions for the defined settings files.
|
||||||
file:
|
file:
|
||||||
state: file
|
|
||||||
path: "{{ item.0.root }}/{{ item.1 }}"
|
|
||||||
mode: a-X
|
mode: a-X
|
||||||
|
path: "{{ item.0.root }}/{{ item.1 }}"
|
||||||
|
state: file
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- "{{ drupal_permissions.sites }}"
|
- "{{ drupal_permissions.sites }}"
|
||||||
- settings_files
|
- settings_files
|
||||||
|
|
||||||
- name: Set permissions for the defined files directories.
|
- name: Set permissions for the defined files directories.
|
||||||
file:
|
file:
|
||||||
state: directory
|
|
||||||
path: "{{ item.0.root }}/{{ item.1 }}"
|
|
||||||
mode: ug=rwX,o=
|
mode: ug=rwX,o=
|
||||||
|
path: "{{ item.0.root }}/{{ item.1 }}"
|
||||||
recurse: true
|
recurse: true
|
||||||
|
state: directory
|
||||||
with_subelements:
|
with_subelements:
|
||||||
- "{{ drupal_permissions.sites }}"
|
- "{{ drupal_permissions.sites }}"
|
||||||
- files_directories
|
- files_directories
|
||||||
|
|
Loading…
Reference in a new issue