Skip to content
Snippets Groups Projects
Commit bd900a49 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#2916 Create a home directory for each jail

parent efa4d693
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,16 @@
loop_var: drupal
when: drupal.jail is defined and (jail_available is changed or jailsite_init_force) and (limit_site is not defined or limit_site == 'no' or drupal.id is not defined or limit_site == drupal.id)
- name: Ensure Jail Home Directory
file:
path: '{{ jailroot }}/{{ item.jail.name }}/home/{{ item.jail.name }}'
state: directory
owner: '{{ item.jail.name }}'
group: '{{ item.jail.name }}'
mode: 0755
with_items: '{{ drupal_settings|default([]) }}'
when: item.jail is defined and (limit_site is not defined or limit_site == 'no' or item.id is not defined or limit_site == item.id)
- name: Ensure tmp Directory
file:
path: '{{ jailroot }}/{{ item.jail.name }}/tmp'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment