ansible-roles/webapps/evoadmin-web/tasks/packages.yml
Benoît S. a7ef7be973
Some checks reported errors
continuous-integration/drone/pr Build encountered an error
continuous-integration/drone/push Build is passing
evoadmin-web: download sid package for php-log
2019-07-04 17:16:43 +02:00

45 lines
1 KiB
YAML

---
- include_role:
name: apt
tasks_from: evolix_public.yml
- name: Install PHP packages (Debian 10 and later)
apt:
name: '{{ item }}'
state: present
with_items:
- php-pear
when: ansible_distribution_major_version | version_compare('10', '>=')
# /!\ Warning, this is a temporary hack
- include_role:
name: 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 | version_compare('10', '>=')
- name: Install PHP packages (stretch)
apt:
name: '{{ item }}'
state: present
with_items:
- php-pear
- php-log
when: ansible_distribution_release == "stretch"
- name: Install PHP5 packages (jessie)
apt:
name: '{{ item }}'
state: present
allow_unauthenticated: yes
with_items:
- php5-pam
when: ansible_distribution_release == "jessie"