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).
33 lines
734 B
YAML
33 lines
734 B
YAML
---
|
|
- name: "Ensure that lxc_php_version is defined"
|
|
fail:
|
|
msg: Please configure var lxc_php_version
|
|
when: lxc_php_version is none
|
|
|
|
- name: "Update APT cache in container {{ lxc_php_version }}"
|
|
lxc_container:
|
|
name: "{{ lxc_php_version }}"
|
|
container_command: "apt-get update"
|
|
|
|
- import_tasks: "php56.yml"
|
|
when: lxc_php_version == "php56"
|
|
|
|
- import_tasks: "php70.yml"
|
|
when: lxc_php_version == "php70"
|
|
|
|
- import_tasks: "php73.yml"
|
|
when: lxc_php_version == "php73"
|
|
|
|
- import_tasks: "php74.yml"
|
|
when: lxc_php_version == "php74"
|
|
|
|
- import_tasks: "php80.yml"
|
|
when: lxc_php_version == "php80"
|
|
|
|
- import_tasks: "php81.yml"
|
|
when: lxc_php_version == "php81"
|
|
|
|
- import_tasks: "umask.yml"
|
|
|
|
- import_tasks: "misc.yml"
|