forked from evolix/ansible-roles
Merge branch 'php-71' into 'unstable'
Add support for PHP 7.1 using sury repository. See merge request !10
This commit is contained in:
commit
2cba10ea27
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
php_sury_enable: False
|
||||||
php_fpm_enable: False
|
php_fpm_enable: False
|
||||||
php_apache_enable: False
|
php_apache_enable: False
|
||||||
php_symfony_requirements: False
|
php_symfony_requirements: False
|
||||||
|
|
7
php/files/sury.preferences
Normal file
7
php/files/sury.preferences
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Package: php* libapache2-mod-php*
|
||||||
|
Pin: origin packages.sury.org
|
||||||
|
Pin-Priority: 999
|
||||||
|
|
||||||
|
Package: *
|
||||||
|
Pin: origin packages.sury.org
|
||||||
|
Pin-Priority: 50
|
|
@ -8,6 +8,9 @@
|
||||||
- include: php_jessie.yml
|
- include: php_jessie.yml
|
||||||
when: ansible_distribution_release == "jessie"
|
when: ansible_distribution_release == "jessie"
|
||||||
|
|
||||||
|
- include: php_stretch_sury.yml
|
||||||
|
when: ansible_distribution_major_version | version_compare('9', '>=') and php_sury_enable
|
||||||
|
|
||||||
- include: php_stretch.yml
|
- include: php_stretch.yml
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '>=')
|
||||||
|
|
||||||
|
|
23
php/tasks/php_stretch_sury.yml
Normal file
23
php/tasks/php_stretch_sury.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Setup deb.sury.org repository - Add GPG key
|
||||||
|
get_url:
|
||||||
|
url: https://packages.sury.org/php/apt.gpg
|
||||||
|
dest: /etc/apt/trusted.gpg.d/sury.gpg
|
||||||
|
mode: "0644"
|
||||||
|
|
||||||
|
- name: Setup deb.sury.org repository - Install apt-transport-https
|
||||||
|
apt:
|
||||||
|
state: present
|
||||||
|
name: apt-transport-https
|
||||||
|
|
||||||
|
- name: Setup deb.sury.org repository - Add preferences file
|
||||||
|
copy:
|
||||||
|
src: sury.preferences
|
||||||
|
dest: /etc/apt/preferences.d/z-sury
|
||||||
|
|
||||||
|
- name: Setup deb.sury.org repository - Add source list
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb https://packages.sury.org/php/ stretch main"
|
||||||
|
filename: sury
|
||||||
|
state: present
|
Loading…
Reference in a new issue