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

40 lines
980 B
YAML
Raw Normal View History

2017-07-03 18:22:24 +02:00
---
- include_role:
2019-11-29 14:00:25 +01:00
name: evolix/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:
2019-12-31 15:25:10 +01:00
name: php-pear
2017-07-03 18:22:24 +02:00
state: present
when: ansible_distribution_major_version is version_compare('10', '>=')
2017-07-13 14:09:24 +02:00
# /!\ Warning, this is a temporary hack
- include_role:
2019-11-29 14:00:25 +01:00
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', '>=')
2019-06-27 16:16:19 +02:00
- name: Install PHP packages (stretch)
2017-07-03 18:22:24 +02:00
apt:
2019-12-31 15:25:10 +01:00
name:
- php-pear
- php-log
2017-07-03 18:22:24 +02:00
state: present
when: ansible_distribution_release == "stretch"
2017-07-13 14:09:24 +02:00
2019-06-27 16:16:19 +02:00
- name: Install PHP5 packages (jessie)
2017-07-13 14:09:24 +02:00
apt:
2019-12-31 15:25:10 +01:00
name: php5-pam
2017-07-13 14:09:24 +02:00
state: present
allow_unauthenticated: True
2017-07-13 14:09:24 +02:00
when: ansible_distribution_release == "jessie"