---
- name: LXC configuration
  ansible.builtin.include_role:
    name: evolix/lxc

- name: Ensure containers root directory is 755
  ansible.builtin.file:
    path: "/var/lib/lxc/{{ item.name }}/rootfs"
    state: directory
    mode: '0755'
  loop: "{{ lxc_containers }}"

- ansible.builtin.include: solr.yml
  args:
    name: "{{ item.name }}"
    solr_version: "{{ item.solr_version }}"
    solr_port: "{{ item.solr_port }}"
  loop: "{{ lxc_containers }}"
