ansible-collection-nextcloud/roles/php/tasks/install.yml

36 lines
966 B
YAML
Raw Normal View History

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
2023-03-26 01:47:50 +01:00
when: php_use_sury_repo
2023-02-07 09:04:38 +01:00
- 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"
2023-03-26 01:47:50 +01:00
state: "{{ php_use_sury_repo | ternary('present', 'absent') }}"
2023-02-07 09:04:38 +01:00
- 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 }}"