ansible-php/tests/includes/pre_Debian.yml

26 lines
616 B
YAML

---
- name: SET_FACT | Prepare test vars
set_fact:
__nginx_conf: /etc/nginx/nginx.conf
- name: APT | Install packages
apt:
pkg: "{{ p }}"
update_cache: yes
cache_valid_time: 3600
vars:
p:
- apt-transport-https
- ca-certificates
- curl
- lsb-release
- nginx
- vim
- name: INCLUDE_TASKS | Sury
include_tasks: Debian/sury.yml
when:
((ansible_distribution_major_version is version('9', 'eq')) and (php_version is version('7.1', 'ge'))) or
((ansible_distribution_major_version is version('10', 'eq')) and (php_version is version('7.4', 'ge')))