Compat Ansible 2.5+

This commit is contained in:
Emilien Mantel
2019-01-28 14:46:58 +01:00
parent 6c3aa5443a
commit e45df940cd
8 changed files with 92 additions and 56 deletions

View File

@@ -6,18 +6,19 @@
- name: APT | Install packages
apt:
pkg: "{{ item }}"
pkg: "{{ p }}"
update_cache: yes
cache_valid_time: 3600
with_items:
- apt-transport-https
- ca-certificates
- curl
- lsb-release
- nginx
vars:
p:
- apt-transport-https
- ca-certificates
- curl
- lsb-release
- nginx
- name: INCLUDE | Sury
include: Debian/sury.yml
when: >
ansible_distribution_major_version | version_compare(9, 'eq') and
php_version | version_compare('7.1', 'ge')
ansible_distribution_major_version is version(9, 'eq') and
php_version is version('7.1', 'ge')

View File

@@ -7,7 +7,4 @@
- name: PKGNG | Install packages
pkgng:
name: "{{ item }}"
with_items:
- curl
- nginx
name: ['curl', 'nginx']