forked from evolix/ansible-roles
d206ae4c85
Replaced direct call to lxc-attach with the lxc_container module calling a container_command. (+ spaces before and after variable name)
17 lines
408 B
YAML
17 lines
408 B
YAML
---
|
|
- name: LXC configuration
|
|
include_role:
|
|
name: evolix/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 }}"
|