1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/www_base/tasks/php-stem.yml

64 lines
2.3 KiB
YAML
Raw Normal View History

2020-01-25 19:10:17 +00:00
# Fixes search @ http://box/modules/es-wikihow (popular with Spanish youth)
# Source code: http://download.iiab.io/packages/php-stem.src.tar
# June 2018 debugging & compilation thanks to Tim Moody & George Hunt
# Original bug: https://github.com/iiab/iiab/issues/829
2020-04-19 17:43:12 +00:00
- name: Set fact stem available php 7.2 - includes x86_64 only
set_fact:
stem_available: True
when: ansible_machine == "x86_64" and php_version == 7.2
- name: Set fact stem available php 7.3 - excludes i386
2020-04-19 17:12:41 +00:00
set_fact:
stem_available: True
when: not ansible_machine == "i386" and php_version == 7.3
2020-04-25 23:33:03 +00:00
- name: Set fact stem available php 7.4
set_fact:
stem_available: True
when: php_version == 7.4 and (ansible_machine == "aarch64" or ansible_machine == "x86_64")
2020-04-19 17:12:41 +00:00
2020-01-25 19:47:23 +00:00
- name: Unarchive http://download.iiab.io/packages/php{{ php_version }}-stem.rpi.tar to / (rpi)
2020-01-25 19:10:17 +00:00
unarchive:
2020-01-25 19:47:23 +00:00
src: http://download.iiab.io/packages/php{{ php_version }}-stem.rpi.tar
2020-01-25 19:10:17 +00:00
dest: /
owner: root
group: root
#mode: ????
remote_src: yes
2020-04-19 17:12:41 +00:00
when: ansible_machine == "armv7l" and stem_available is defined
2020-03-03 16:11:53 +00:00
- name: Unarchive http://download.iiab.io/packages/php{{ php_version }}-stem.aarch64.tar to / (rpi)
unarchive:
src: http://download.iiab.io/packages/php{{ php_version }}-stem.aarch64.tar
dest: /
owner: root
group: root
#mode: ????
remote_src: yes
2020-04-19 17:12:41 +00:00
when: ansible_machine == "aarch64" and stem_available is defined
2020-01-25 19:10:17 +00:00
2020-01-25 19:47:23 +00:00
- name: Unarchive http://download.iiab.io/packages/php{{ php_version }}-stem.x64.tar to / (x64)
2020-01-25 19:10:17 +00:00
unarchive:
2020-01-25 19:47:23 +00:00
src: http://download.iiab.io/packages/php{{ php_version }}-stem.x64.tar
2020-01-25 19:10:17 +00:00
dest: /
owner: root
group: root
#mode: ????
remote_src: yes
2020-04-19 17:12:41 +00:00
when: ansible_machine == "x86_64" and stem_available is defined
2020-01-25 19:10:17 +00:00
2020-04-19 15:54:47 +00:00
- name: Symlink /etc/php/{{ php_version }}/fpm/conf.d/20-stem.ini -> /etc/php/{{ php_version }}/mods-available/stem.ini
file:
src: "/etc/php/{{ php_version }}/mods-available/stem.ini"
path: "/etc/php/{{ php_version }}/fpm/conf.d/20-stem.ini"
state: link
2020-04-19 17:12:41 +00:00
when: stem_available is defined
2020-01-25 19:10:17 +00:00
# Not sure what to do for apache, so do nothing for now
2020-01-25 20:32:07 +00:00
# The following are probably no longer true 2020-01-25
2020-01-25 19:10:17 +00:00
# Presumably fails on Debian 8 & 10?
# Fails on Debian i686 as of 2018-08-07: https://github.com/iiab/iiab/issues/983
# Fails on Ubuntu 18.04 as of 2018-07-28: https://github.com/iiab/iiab/issues/829