7c632352a0
The behaviour of the `include` module is badly defined (it try to choose between statically importing the tasks and dynamically including them) and can cause problems depending on any number of constraints (mostly if it choose the wrong behaviour). Replace it with the `import_tasks` (always statically import tasks) unless the `include` is in a loop in which case we replace it with `include_tasks` (always dynamically include tasks).
19 lines
415 B
YAML
19 lines
415 B
YAML
---
|
|
- name: LXC configuration
|
|
import_role:
|
|
name: evolix/lxc
|
|
|
|
- name: Ensure containers root directory is 755
|
|
file:
|
|
path: "/var/lib/lxc/{{ item.name }}/rootfs"
|
|
state: directory
|
|
mode: '0755'
|
|
loop: "{{ lxc_containers }}"
|
|
|
|
- import_tasks: solr.yml
|
|
args:
|
|
name: "{{ item.name }}"
|
|
solr_version: "{{ item.solr_version }}"
|
|
solr_port: "{{ item.solr_port }}"
|
|
loop: "{{ lxc_containers }}"
|