1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

php-stem.yml: Clarify... php_extension: "{{ php_extensions[php_version] }}"

This commit is contained in:
A Holt 2021-12-25 19:40:12 -05:00 committed by GitHub
parent acf76155f4
commit 7c3bf2930a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,8 @@
# Original bug: https://github.com/iiab/iiab/issues/829
- set_fact:
- name: Populate php_extensions dictionary (lookup table of recent PHP versions and their corresponding YYYYMMDD, for /usr/lib/php/YYYYMMDD/stem.so)
set_fact:
php_extensions: # Dictionary keys (left side) are always strings, e.g. "7.2"
7.2: 20170718 # Dictionary values (right side) can be of type int here, as it's auto-cast to string just below. Strings would also work e.g. 7.2: "20170718"
7.3: 20180731
@ -15,7 +16,8 @@
8.0: 20200930
8.1: 20210902
- set_fact:
- name: Set php_extension to "{{ php_extensions[php_version] }}" using php_extensions[php_version]
set_fact:
php_extension: "{{ php_extensions[php_version] }}"
# Auto-lookup would also work...