2017-07-03 18:22:24 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- include_role:
|
2017-07-19 08:56:46 +02:00
|
|
|
name: apt
|
2017-07-03 18:22:24 +02:00
|
|
|
tasks_from: evolix_public.yml
|
|
|
|
|
2019-06-27 16:16:19 +02:00
|
|
|
- name: Install PHP packages (Debian 10 and later)
|
2017-07-03 18:22:24 +02:00
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
with_items:
|
2019-06-27 16:16:19 +02:00
|
|
|
- php-pear
|
|
|
|
when: ansible_distribution_major_version | version_compare('10', '>=')
|
2017-07-13 14:09:24 +02:00
|
|
|
|
2019-06-27 16:16:19 +02:00
|
|
|
- name: Install PHP packages (stretch)
|
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- php-pear
|
|
|
|
- php-log
|
|
|
|
when: ansible_lsb.codename == "stretch"
|
|
|
|
|
|
|
|
- name: Install PHP5 packages (jessie)
|
2017-07-13 14:09:24 +02:00
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
allow_unauthenticated: yes
|
|
|
|
with_items:
|
2019-06-27 16:16:19 +02:00
|
|
|
- php5-pam
|
2019-06-18 17:35:28 +02:00
|
|
|
when: ansible_lsb.codename == "jessie"
|