ansible-roles/lxc-php/tasks/php74.yml

27 lines
1,016 B
YAML
Raw Normal View History

2021-03-31 10:57:29 +02:00
---
2021-05-13 15:23:05 +02:00
2021-03-31 10:57:29 +02:00
- name: "{{ lxc_php_version }} - Install PHP packages"
community.general.lxc_container:
2021-03-31 10:57:29 +02:00
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"
2021-03-31 10:57:29 +02:00
- name: "{{ lxc_php_version }} - fix bullseye repository"
ansible.builtin.replace:
2023-03-19 11:50:58 +01:00
dest: "{{ lxc_rootfs }}/etc/apt/sources.list"
regexp: 'bullseye/updates'
replace: 'bullseye-security'
2021-03-31 10:57:29 +02:00
- name: "{{ lxc_php_version }} - Copy evolinux PHP configuration"
ansible.builtin.template:
2021-03-31 10:57:29 +02:00
src: z-evolinux-defaults.ini.j2
dest: "{{ line_item }}"
mode: "0644"
notify: "Reload {{ lxc_php_version }}-fpm"
loop:
2023-03-19 11:50:58 +01:00
- "{{ lxc_rootfs }}/etc/php/7.4/fpm/conf.d/z-evolinux-defaults.ini"
- "{{ lxc_rootfs }}/etc/php/7.4/cli/conf.d/z-evolinux-defaults.ini"
2021-03-31 10:57:29 +02:00
loop_control:
loop_var: line_item
- ansible.builtin.include: "mail_opensmtpd.yml"