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

link 20-stem.ini in php-stem.yml

This commit is contained in:
Jerry Vonau 2020-04-19 10:54:47 -05:00
parent 4f766b6e17
commit f3a8e30256
2 changed files with 5 additions and 13 deletions

View file

@ -49,18 +49,6 @@
msg: roles/nginx/tasks/homepage.yml will run LATER (invoked by roles/www_options/tasks/main.yml) SO THAT NGINX CAN REDIRECT http://box TO http://box{{ iiab_home_url }} (based on var iiab_home_url)
# - include_tasks: roles/nginx/tasks/homepage.yml
# php-stem extension installed by roles/www_base/tasks/php-stem.yml
# here it is linked to php-fpm
# we skip any errors which probably due to the lack of the .so for the current platform
- 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
ignore_errors: yes
#when: php_version != 7.4
#when: nginx_enabled | bool
- name: Restart php{{ php_version }}-fpm systemd service
systemd:
name: "php{{ php_version }}-fpm"

View file

@ -33,7 +33,11 @@
remote_src: yes
when: ansible_machine == "x86_64"
# link to php done in roles/nginx/tasks/install.yml when php-fpm is installed
- 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
# Not sure what to do for apache, so do nothing for now