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 committed by Patrick Marchand
parent eac096fd0b
commit 4fa1023780

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 }}"