This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 643
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a7c7d2
commit ac77e1e
Showing
15 changed files
with
53 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
# The PHP version to be installed. | ||
php_version: '7.2' | ||
php_version: '7.3' | ||
|
||
# For Debian OSes only. | ||
php_versions_install_recommends: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
|
||
vars: | ||
php_enable_webserver: false | ||
php_version: '7.2' | ||
|
||
pre_tasks: | ||
- name: Update apt cache. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 25 additions & 12 deletions
37
provisioning/roles/geerlingguy.php-versions/tasks/setup-RedHat.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,33 @@ | ||
--- | ||
- name: Enable remi repo for PHP 5.6. | ||
set_fact: php_enablerepo="remi,remi-php56" | ||
when: php_version == "5.6" | ||
|
||
- name: Enable remi repo for PHP 7.0. | ||
set_fact: php_enablerepo="remi,remi-php70" | ||
when: php_version == "7.0" | ||
|
||
- name: Enable remi repo for PHP 7.1. | ||
set_fact: php_enablerepo="remi,remi-php71" | ||
when: php_version == "7.1" | ||
|
||
- name: Enable remi repo for PHP 7.2. | ||
set_fact: php_enablerepo="remi,remi-php72" | ||
when: php_version == "7.2" | ||
|
||
- name: Enable remi repo for PHP 7.3. | ||
set_fact: php_enablerepo="remi,remi-php73" | ||
when: php_version == "7.3" | ||
|
||
- name: Enable remi repo for PHP 7.4. | ||
set_fact: php_enablerepo="remi,remi-php74" | ||
when: php_version == "7.4" | ||
|
||
# See: https://github.com/ansible/ansible/issues/64852 | ||
- block: | ||
- name: Ensure dnf-plugins are installed on CentOS 8+. | ||
yum: | ||
name: dnf-plugins-core | ||
state: present | ||
|
||
- name: Enable DNF module for CentOS 8+. | ||
shell: | | ||
dnf config-manager --set-enabled PowerTools | ||
dnf module enable -y php:remi-{{ php_version }} | ||
args: | ||
warn: false | ||
register: dnf_module_enable | ||
changed_when: "'Nothing to do' not in dnf_module_enable.stdout" | ||
|
||
- debug: var=dnf_module_enable | ||
when: | ||
- ansible_os_family == 'RedHat' | ||
- ansible_distribution_major_version | int >= 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/ubuntu-18-php73.config.yml → tests/ubuntu-18-php74.config.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
--- | ||
php_version: "7.3" | ||
php_version: "7.4" | ||
php_sendmail_path: "/usr/sbin/sendmail -t -i" | ||
installed_extras: [] |