From 31e0d11415a4aa280beb2327cdcfd7fff73d74c8 Mon Sep 17 00:00:00 2001 From: Chris Thompson Date: Tue, 28 Aug 2018 14:34:46 -0400 Subject: [PATCH] Attempt to force permissions for settings folders --- provisioning/box/post-tasks/10-drupal.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/provisioning/box/post-tasks/10-drupal.yml b/provisioning/box/post-tasks/10-drupal.yml index 55970a7..c3625a7 100644 --- a/provisioning/box/post-tasks/10-drupal.yml +++ b/provisioning/box/post-tasks/10-drupal.yml @@ -9,14 +9,20 @@ path: "{{ drupal_core_path }}/sites/default" mode: 0775 state: directory + owner: vagrant + group: vagrant when: stat_result.stat.exists == true and stat_result.stat.writeable == false + become: yes - name: ensure settings file is still writable file: path: "{{ drupal_core_path }}/sites/default/settings.php" mode: 0664 state: file + owner: vagrant + group: vagrant when: stat_result.stat.exists == true and stat_result.stat.writeable == false + become: yes - name: Run composer install. command: "composer install"