diff --git a/provisioning/box/post-tasks/10-drupal.yml b/provisioning/box/post-tasks/10-drupal.yml index 265b387..55970a7 100644 --- a/provisioning/box/post-tasks/10-drupal.yml +++ b/provisioning/box/post-tasks/10-drupal.yml @@ -1,16 +1,22 @@ --- -- name: ensure settings location is still writable +- name: determine status of settings location + stat: + path: "{{ drupal_core_path }}/sites/default" + register: stat_result + +- name: ensure settings location is writable file: path: "{{ drupal_core_path }}/sites/default" mode: 0775 state: directory + when: stat_result.stat.exists == true and stat_result.stat.writeable == false - name: ensure settings file is still writable file: path: "{{ drupal_core_path }}/sites/default/settings.php" mode: 0664 state: file - ignore_errors: yes + when: stat_result.stat.exists == true and stat_result.stat.writeable == false - name: Run composer install. command: "composer install"