2018-03-18 23:28:57 +07:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: SET_FACT | Prepare test vars
|
|
|
|
set_fact:
|
2018-03-19 03:29:47 +07:00
|
|
|
__nginx_conf: /etc/nginx/nginx.conf
|
2018-03-18 23:28:57 +07:00
|
|
|
|
|
|
|
- name: APT | Install packages
|
|
|
|
apt:
|
2019-01-28 20:46:58 +07:00
|
|
|
pkg: "{{ p }}"
|
2018-03-18 23:28:57 +07:00
|
|
|
update_cache: yes
|
|
|
|
cache_valid_time: 3600
|
2019-01-28 20:46:58 +07:00
|
|
|
vars:
|
|
|
|
p:
|
|
|
|
- apt-transport-https
|
|
|
|
- ca-certificates
|
|
|
|
- curl
|
|
|
|
- lsb-release
|
|
|
|
- nginx
|
2018-03-18 23:28:57 +07:00
|
|
|
|
2019-04-19 15:28:00 +07:00
|
|
|
- name: INCLUDE_TASKS | Sury
|
|
|
|
include_tasks: Debian/sury.yml
|
2019-04-19 16:18:46 +07:00
|
|
|
when:
|
|
|
|
(ansible_distribution_major_version is version('9', 'eq')) and
|
|
|
|
(php_version is version('7.1', 'ge'))
|