Use FQCN builtins

This commit is contained in:
Emilien Mantel
2021-08-31 13:02:57 +02:00
parent 57aee1fbc4
commit a6e75032a5
11 changed files with 80 additions and 63 deletions

View File

@@ -1,9 +1,9 @@
---
- name: APT | Install Sury key
apt_key:
ansible.builtin.apt_key:
url: 'https://packages.sury.org/php/apt.gpg'
- name: APT_REPOSITORY | Add Sury repository
apt_repository:
ansible.builtin.apt_repository:
repo: 'deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main'

View File

@@ -1,11 +1,11 @@
---
- name: SET_FACT | Prepare test vars
set_fact:
ansible.builtin.set_fact:
__nginx_conf: /etc/nginx/nginx.conf
- name: APT | Install packages
apt:
ansible.builtin.apt:
pkg: "{{ p }}"
update_cache: true
cache_valid_time: 3600
@@ -20,5 +20,5 @@
- vim
- name: INCLUDE_TASKS | Sury
include_tasks: Debian/sury.yml
ansible.builtin.include_tasks: Debian/sury.yml
when: php_version != php_default_version

View File

@@ -1,10 +1,10 @@
---
- name: SET_FACT | Prepare test vars
set_fact:
ansible.builtin.set_fact:
__nginx_conf: /usr/local/etc/nginx/nginx.conf
php_xdebug_package: 'php72-pecl-xdebug-2.6.1'
- name: PKGNG | Install packages
pkgng:
ansible.builtin.pkgng:
name: ['curl', 'nginx']