mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
stem_available
This commit is contained in:
parent
f3a8e30256
commit
766a510071
1 changed files with 15 additions and 3 deletions
|
@ -3,6 +3,17 @@
|
|||
# June 2018 debugging & compilation thanks to Tim Moody & George Hunt
|
||||
# Original bug: https://github.com/iiab/iiab/issues/829
|
||||
|
||||
- name: Set fact stem available php 7.3
|
||||
set_fact:
|
||||
stem_available: True
|
||||
when: not ansible_machine == "i386" and php_version == 7.3
|
||||
|
||||
# Uncomment and alter to suit current supported arches
|
||||
#- 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")
|
||||
|
||||
- name: Unarchive http://download.iiab.io/packages/php{{ php_version }}-stem.rpi.tar to / (rpi)
|
||||
unarchive:
|
||||
src: http://download.iiab.io/packages/php{{ php_version }}-stem.rpi.tar
|
||||
|
@ -11,7 +22,7 @@
|
|||
group: root
|
||||
#mode: ????
|
||||
remote_src: yes
|
||||
when: ansible_machine == "armv7l"
|
||||
when: ansible_machine == "armv7l" and stem_available is defined
|
||||
|
||||
- name: Unarchive http://download.iiab.io/packages/php{{ php_version }}-stem.aarch64.tar to / (rpi)
|
||||
unarchive:
|
||||
|
@ -21,7 +32,7 @@
|
|||
group: root
|
||||
#mode: ????
|
||||
remote_src: yes
|
||||
when: ansible_machine == "aarch64"
|
||||
when: ansible_machine == "aarch64" and stem_available is defined
|
||||
|
||||
- name: Unarchive http://download.iiab.io/packages/php{{ php_version }}-stem.x64.tar to / (x64)
|
||||
unarchive:
|
||||
|
@ -31,13 +42,14 @@
|
|||
group: root
|
||||
#mode: ????
|
||||
remote_src: yes
|
||||
when: ansible_machine == "x86_64"
|
||||
when: ansible_machine == "x86_64" and stem_available is defined
|
||||
|
||||
- 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
|
||||
when: stem_available is defined
|
||||
|
||||
# Not sure what to do for apache, so do nothing for now
|
||||
|
||||
|
|
Loading…
Reference in a new issue