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).
27 lines
1 KiB
YAML
27 lines
1 KiB
YAML
---
|
|
|
|
- name: "{{ lxc_php_version }} - Install PHP packages"
|
|
lxc_container:
|
|
name: "{{ lxc_php_version }}"
|
|
container_command: "DEBIAN_FRONTEND=noninteractive apt install -y php-fpm php-cli php-gd php-intl php-imap php-ldap php-mysql php-pgsql php-sqlite3 php-curl php-zip php-mbstring php-xml php-zip composer libphp-phpmailer"
|
|
|
|
- name: "{{ lxc_php_version }} - fix bullseye repository"
|
|
replace:
|
|
dest: "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/apt/sources.list"
|
|
regexp: 'bullseye/updates'
|
|
replace: 'bullseye-security'
|
|
|
|
- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration"
|
|
template:
|
|
src: z-evolinux-defaults.ini.j2
|
|
dest: "{{ line_item }}"
|
|
mode: "0644"
|
|
notify: "Reload {{ lxc_php_version }}-fpm"
|
|
loop:
|
|
- "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/php/7.4/fpm/conf.d/z-evolinux-defaults.ini"
|
|
- "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/php/7.4/cli/conf.d/z-evolinux-defaults.ini"
|
|
loop_control:
|
|
loop_var: line_item
|
|
|
|
- import_tasks: "mail_opensmtpd.yml"
|