ansible-roles/lxc-solr/tasks/main.yml
Mathieu Trossevin d206ae4c85
[Cleanup] lxc-solr
Replaced direct call to lxc-attach with the lxc_container module calling
a container_command.

(+ spaces before and after variable name)
2020-12-23 15:06:43 +01:00

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