mirror of
https://github.com/HanXHX/ansible-php.git
synced 2026-04-21 14:02:09 +07:00
Mass cleanup and drop jessie support
This commit is contained in:
9
tests/includes/Debian/dotdeb.yml
Normal file
9
tests/includes/Debian/dotdeb.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
- name: APT | Install DotDeb key
|
||||
apt_key:
|
||||
url: 'http://www.dotdeb.org/dotdeb.gpg'
|
||||
|
||||
- name: APT | Add Dotdeb repository
|
||||
apt_repository:
|
||||
repo: 'deb http://packages.dotdeb.org {{ ansible_distribution_release }} all'
|
||||
9
tests/includes/Debian/sury.yml
Normal file
9
tests/includes/Debian/sury.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
- name: APT | Install Sury key
|
||||
apt_key:
|
||||
url: 'https://packages.sury.org/php/apt.gpg'
|
||||
|
||||
- name: APT | Add Sury repository
|
||||
apt_repository:
|
||||
repo: 'deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main'
|
||||
@@ -1,7 +0,0 @@
|
||||
---
|
||||
|
||||
- name: APT | Install DotDeb key
|
||||
apt_key: url='http://www.dotdeb.org/dotdeb.gpg' state=present
|
||||
|
||||
- name: APT | Add Dotdeb repository
|
||||
apt_repository: repo='deb http://packages.dotdeb.org {{ ansible_distribution_release }} all' state=present
|
||||
23
tests/includes/pre_Debian.yml
Normal file
23
tests/includes/pre_Debian.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
|
||||
- name: SET_FACT | Prepare test vars
|
||||
set_fact:
|
||||
__nginx_site_dir: /etc/nginx/sites-enabled
|
||||
|
||||
- name: APT | Install packages
|
||||
apt:
|
||||
pkg: "{{ item }}"
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
with_items:
|
||||
- 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')
|
||||
@@ -1,7 +0,0 @@
|
||||
---
|
||||
|
||||
- name: APT | Install Sury key
|
||||
apt_key: url='https://packages.sury.org/php/apt.gpg' state=present
|
||||
|
||||
- name: APT | Add Sury repository
|
||||
apt_repository: repo='deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main' state=present
|
||||
Reference in New Issue
Block a user