From 7f1836913eb6787d4946690b1f99e86736e7797c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 30 Aug 2020 21:38:40 +0100 Subject: [PATCH] Reorder items based on keys --- tasks/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 725d24f..021a8f5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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