ansible-roles/webapps/evoadmin-web/tasks/packages.yml
Benoît S. 771c75c1de
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing
all-roles: Dot not use ansible_lsb as it is deprecated
We move from `ansible_lsb.codename` to `ansible_distribution_release`.
2019-07-03 09:41:35 +02:00

32 lines
652 B
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', '>=')
- 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"