Add a task to make sure the rootfs directory of each container has 755 rights

This commit is contained in:
Tristan PILAT 2019-07-04 12:22:46 +02:00
parent 8de8736dbc
commit 57e93eddd4
1 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,14 @@
include_role:
name: lxc
- name: Ensure containers root directory is 755
file:
path: "/var/lib/lxc/{{ item.name }}/rootfs"
state: directory
mode: '0755'
with_items:
- "{{ lxc_containers }}"
- include: "solr.yml name={{item.name}} solr_version={{item.solr_version}} solr_port={{item.solr_port}}"
with_items:
- "{{ lxc_containers }}"