forked from evolix/ansible-roles
Ludovic Poujol
e6f2bbb331
This is a breaking change as lxc-php should now be called for *each* php containers we want, with the correct lxc_php_version variable. Current valid values are : - php56 - php70 - php73 Other changes includes : - LXC Containers are created by calling lxc as a dependency of the role. - Relying on lxc_container module to do commands into the container (instead of the command module) - PHP 7.3 container is now a Debian Buster container - All containers will have opensmtpd to relay emails to postfix on the host system.
19 lines
806 B
YAML
19 lines
806 B
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-gettext php-curl php-ssh2 php-mbstring composer libphp-phpmailer opensmtpd git zip unzip php-zip"
|
|
|
|
- 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"
|
|
with_items:
|
|
- "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/php/7.3/fpm/conf.d/z-evolinux-defaults.ini"
|
|
- "/var/lib/lxc/{{ lxc_php_version }}/rootfs/etc/php/7.3/cli/conf.d/z-evolinux-defaults.ini"
|
|
loop_control:
|
|
loop_var: line_item
|