Ensure that the site directory exists

This commit is contained in:
Oliver Davies 2020-02-07 17:36:29 +00:00
parent da31cccb8e
commit 40d9add7eb

View file

@ -1,4 +1,13 @@
--- ---
- name: Ensure directory exists
file:
state: directory
path: '{{ item.0.drupal_root }}/sites/{{ item.1.name|default("default") }}'
with_subelements:
- '{{ drupal_settings }}'
- sites
no_log: true
- name: Create settings files - name: Create settings files
template: template:
src: settings.php.j2 src: settings.php.j2
@ -6,4 +15,4 @@
with_subelements: with_subelements:
- '{{ drupal_settings }}' - '{{ drupal_settings }}'
- sites - sites
no_log: True no_log: true