This commit is contained in:
2021-07-15 15:42:30 -06:00
parent 0bb0af608f
commit 12b275a050
74 changed files with 9436 additions and 3 deletions

View File

@@ -0,0 +1,50 @@
---
# Debian 9 Stretch ONLY
# We use the sury.org PHP repositories which contains many versions of PHP
# All of these versions will be newere than comes stock with debian
# Add sury.org GPG keys
- name: Addding sury.org PHP sources GPG key
apt_key: url='https://packages.sury.org/php/apt.gpg' state=present
# Add sury.org PHP repositories - Debian 8 Jessie
- name: Adding sury.org PHP sources for Debian 8 Jessie
apt_repository: repo='deb https://packages.sury.org/php/ jessie main' state=present
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "8"
# Add sury.org PHP repositories - Debian 9 Stretch
- name: Adding sury.org PHP sources for Debian 9 Stretch
apt_repository: repo='deb https://packages.sury.org/php/ stretch main' state=present
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "9"
# Add sury.org PHP repositories - Debian 10 Buster
- name: Adding sury.org PHP sources for Debian 10 Buster
apt_repository: repo='deb https://packages.sury.org/php/ buster main' state=present
when: ansible_os_family == "Debian" and ansible_distribution_major_version == "10"
# Install PHP 7.4
- name: Installing PHP 7.4
apt:
update_cache: yes
state: present
name:
- php7.4-bcmath
- php7.4-bz2
- php7.4-cli
- php7.4-common
- php7.4-curl
- php7.4-fpm
- php7.4-gd
- php7.4-imap
- php7.4-intl
- php7.4-json
- php7.4-ldap
- php7.4-mbstring
- php7.4-mysql
- php7.4-opcache
- php7.4-readline
- php7.4-soap
- php7.4-sybase
- php7.4-xml
- php7.4-zip

View File

@@ -0,0 +1,6 @@
---
# php-7.2
# Install PHP 7.2 - Debian All Versions
- include_tasks: install-debian.yml
when: ansible_os_family == "Debian"