ansible-roles/webapps/evoadmin-web/tasks/packages.yml
Jérémy Lecour b773e17560
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing
whitespaces
2019-06-27 16:16:19 +02:00

32 lines
636 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_lsb.codename == "stretch"
- name: Install PHP5 packages (jessie)
apt:
name: '{{ item }}'
state: present
allow_unauthenticated: yes
with_items:
- php5-pam
when: ansible_lsb.codename == "jessie"