Add a task to make sure the rootfs directory of each container has 755 rights
This commit is contained in:
parent
eac096fd0b
commit
4fa1023780
|
@ -3,6 +3,14 @@
|
||||||
include_role:
|
include_role:
|
||||||
name: lxc
|
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}}"
|
- include: "solr.yml name={{item.name}} solr_version={{item.solr_version}} solr_port={{item.solr_port}}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ lxc_containers }}"
|
- "{{ lxc_containers }}"
|
||||||
|
|
Loading…
Reference in a new issue