mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
php-stem.yml: php_stem_arch: "{{ php_stem_arches[ansible_machine] }}"
This commit is contained in:
parent
c45445399e
commit
71c1d16f0d
1 changed files with 8 additions and 11 deletions
|
@ -41,20 +41,17 @@
|
|||
# Then put that location in stem.ini"
|
||||
|
||||
|
||||
- name: 'Set "php_stem_arch: armhf" if ansible_machine == "armv6l" or ansible_machine == "armv7l"'
|
||||
- name: Populate php_stem_arches dictionary (lookup table of CPU architectures for https://github.com/iiab/php-stem/raw/main/so/stem-[ARCH]-[PHP VERSION].so)
|
||||
set_fact:
|
||||
php_stem_arch: armhf
|
||||
when: ansible_machine == "armv6l" or ansible_machine == "armv7l"
|
||||
php_stem_arches:
|
||||
armv6l: armhf
|
||||
armv7l: armhf
|
||||
aarch64: aarch64
|
||||
x86_64: x86
|
||||
|
||||
- name: 'Set "php_stem_arch: aarch64" if ansible_machine == "aarch64"'
|
||||
- name: Set php_stem_arch to "{{ php_stem_arches[ansible_machine] }}" using php_stem_arches[ansible_machine]
|
||||
set_fact:
|
||||
php_stem_arch: aarch64
|
||||
when: ansible_machine == "aarch64"
|
||||
|
||||
- name: 'Set "php_stem_arch: x86" if ansible_machine == "x86_64"'
|
||||
set_fact:
|
||||
php_stem_arch: x86
|
||||
when: ansible_machine == "x86_64"
|
||||
php_stem_arch: "{{ php_stem_arches[ansible_machine] }}"
|
||||
|
||||
|
||||
- name: Download https://github.com/iiab/php-stem/raw/main/so/stem-{{ php_stem_arch }}-{{ php_version }}.so to /usr/lib/php/{{ php_extension }}/stem.so
|
||||
|
|
Loading…
Add table
Reference in a new issue