2023-02-07 09:04:38 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Add packages.sury.org key
|
|
|
|
ansible.builtin.apt_key:
|
|
|
|
url: https://packages.sury.org/php/apt.gpg
|
|
|
|
keyring: /etc/apt/trusted.gpg.d/packages.sury.org-php.gpg
|
|
|
|
|
|
|
|
- name: Add packages.sury.org
|
|
|
|
ansible.builtin.apt_repository:
|
|
|
|
filename: packages.sury.org-php.list
|
|
|
|
repo: "deb https://packages.sury.org/php/ {{ ansible_facts.distribution_release }} main"
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
ansible.builtin.apt:
|
|
|
|
name:
|
2023-02-24 01:19:20 +01:00
|
|
|
- "imagemagick"
|
2023-02-07 09:04:38 +01:00
|
|
|
- "{{ php }}"
|
|
|
|
- "{{ php }}-fpm"
|
|
|
|
- "{{ php }}-cli"
|
|
|
|
- "{{ php }}-bcmath"
|
|
|
|
- "{{ php }}-bz2"
|
|
|
|
- "{{ php }}-curl"
|
|
|
|
- "{{ php }}-gd"
|
|
|
|
- "{{ php }}-gmp"
|
|
|
|
- "{{ php }}-imagick"
|
|
|
|
- "{{ php }}-intl"
|
|
|
|
- "{{ php }}-mbstring"
|
|
|
|
- "{{ php }}-mysql"
|
|
|
|
- "{{ php }}-redis"
|
|
|
|
- "{{ php }}-xml"
|
|
|
|
- "{{ php }}-zip"
|
|
|
|
vars:
|
|
|
|
php: "php{{ php_version }}"
|