mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-27 12:35:11 +01:00
Drop old Debian and Ubuntu versions, update CI.
This commit is contained in:
parent
c30d976555
commit
9d88c264db
@ -10,11 +10,6 @@
|
|||||||
php_enablerepo: "remi,remi-php82"
|
php_enablerepo: "remi,remi-php82"
|
||||||
php_install_recommends: false
|
php_install_recommends: false
|
||||||
|
|
||||||
handlers:
|
|
||||||
- name: update apt cache
|
|
||||||
apt: update_cache=true
|
|
||||||
when: ansible_os_family == 'Debian'
|
|
||||||
|
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Update apt cache.
|
- name: Update apt cache.
|
||||||
apt:
|
apt:
|
||||||
@ -23,44 +18,6 @@
|
|||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Ensure dirmngr is installed (gnupg dependency).
|
|
||||||
apt:
|
|
||||||
name: dirmngr
|
|
||||||
state: present
|
|
||||||
when: ansible_os_family == 'Debian'
|
|
||||||
|
|
||||||
# Debian-specific tasks.
|
|
||||||
- name: Add dependencies for PHP versions (Debian).
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
- apt-transport-https
|
|
||||||
- ca-certificates
|
|
||||||
- gnupg2
|
|
||||||
state: present
|
|
||||||
when: ansible_distribution == "Debian"
|
|
||||||
|
|
||||||
- name: Add Ondrej Sury's repo for PHP 8 (Ubuntu).
|
|
||||||
apt_repository:
|
|
||||||
repo: 'ppa:ondrej/php'
|
|
||||||
when:
|
|
||||||
- ansible_distribution == 'Ubuntu'
|
|
||||||
- ansible_distribution_major_version <= 22
|
|
||||||
|
|
||||||
- name: Add Ondrej Sury's apt key (Debian).
|
|
||||||
apt_key:
|
|
||||||
url: https://packages.sury.org/php/apt.gpg
|
|
||||||
state: present
|
|
||||||
when: ansible_distribution == "Debian"
|
|
||||||
|
|
||||||
- name: Add Ondrej Sury's repo (Debian).
|
|
||||||
apt_repository:
|
|
||||||
repo: "deb https://packages.sury.org/php/ {{ ansible_distribution_release }} main"
|
|
||||||
state: present
|
|
||||||
when: ansible_distribution == "Debian"
|
|
||||||
notify: update apt cache
|
|
||||||
|
|
||||||
- meta: flush_handlers
|
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: geerlingguy.repo-remi
|
- role: geerlingguy.repo-remi
|
||||||
when:
|
when:
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
__php_default_version_debian: "7.3"
|
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
__php_default_version_debian: "7.0"
|
__php_default_version_debian: "8.2"
|
||||||
__php_packages:
|
__php_packages:
|
||||||
- php{{ php_default_version_debian }}-common
|
- php{{ php_default_version_debian }}-common
|
||||||
- php{{ php_default_version_debian }}-cli
|
- php{{ php_default_version_debian }}-cli
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
__php_default_version_debian: "7.2"
|
|
Loading…
Reference in New Issue
Block a user