mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-04-21 14:02:09 +07:00
New release (#14)
* Manages Debian 11 * Migrate to new TravisCI version * Fix lint errors * Use FQCN builtins * Drop Ubuntu Xenial support (16.04)
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -1,25 +1,24 @@
|
||||
---
|
||||
|
||||
- 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: yes
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
vars:
|
||||
p:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- gpg
|
||||
- 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')))
|
||||
ansible.builtin.include_tasks: Debian/sury.yml
|
||||
when: php_version != php_default_version
|
||||
|
||||
@@ -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:
|
||||
community.general.pkgng:
|
||||
name: ['curl', 'nginx']
|
||||
|
||||
Reference in New Issue
Block a user