ansible-roles/webapps/evoadmin-web/tasks/packages.yml

40 lines
980 B
YAML

---
- include_role:
name: evolix/apt
tasks_from: evolix_public.yml
- name: Install PHP packages (Debian 10 and later)
apt:
name: php-pear
state: present
when: ansible_distribution_major_version is version_compare('10', '>=')
# /!\ Warning, this is a temporary hack
- include_role:
name: evolix/remount-usr
# /!\ Warning, this is a temporary hack
- name: Install PHP packages from sid (Debian 10 and later)
apt:
deb: '{{ item }}'
state: present
with_items:
- 'http://mirror.evolix.org/debian/pool/main/p/php-log/php-log_1.12.9-2_all.deb'
when: ansible_distribution_major_version is version_compare('10', '>=')
- name: Install PHP packages (stretch)
apt:
name:
- php-pear
- php-log
state: present
when: ansible_distribution_release == "stretch"
- name: Install PHP5 packages (jessie)
apt:
name: php5-pam
state: present
allow_unauthenticated: True
when: ansible_distribution_release == "jessie"