mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
wait for php-fpm to be installed
This commit is contained in:
parent
778b2dc42d
commit
2d722f5168
2 changed files with 16 additions and 12 deletions
|
@ -23,18 +23,7 @@
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
when: ansible_machine == "x86_64"
|
when: ansible_machine == "x86_64"
|
||||||
|
|
||||||
- name: Create softlink 20-stem.ini to /etc/php/{{ php_version }}/mods-available/stem.ini
|
# link to php done in nginx when php-fpm is installed
|
||||||
file:
|
|
||||||
src: "/etc/php/{{ php_version }}/mods-available/stem.ini"
|
|
||||||
path: "/etc/php/{{ php_version }}/fpm/conf.d/20-stem.ini"
|
|
||||||
state: link
|
|
||||||
when: nginx_enabled
|
|
||||||
|
|
||||||
- name: Restart php{{ php_version }}-fpm service
|
|
||||||
service:
|
|
||||||
name: "php{{ php_version }}-fpm"
|
|
||||||
state: restarted
|
|
||||||
when: nginx_enabled
|
|
||||||
|
|
||||||
# Not sure what to do for apache, so do nothing for now
|
# Not sure what to do for apache, so do nothing for now
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,21 @@
|
||||||
- { src: 'roles/nginx/templates/nginx.conf.j2', dest: '/etc/nginx/nginx.conf' }
|
- { src: 'roles/nginx/templates/nginx.conf.j2', dest: '/etc/nginx/nginx.conf' }
|
||||||
- { src: 'roles/nginx/templates/ports.conf.j2', dest: '/etc/{{ apache_service }}/ports.conf' }
|
- { src: 'roles/nginx/templates/ports.conf.j2', dest: '/etc/{{ apache_service }}/ports.conf' }
|
||||||
|
|
||||||
|
# php stem extension is installed in role httpd
|
||||||
|
# here it is linked to php-fpm
|
||||||
|
- name: Create softlink 20-stem.ini to /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: nginx_enabled
|
||||||
|
|
||||||
|
- name: Restart php{{ php_version }}-fpm service
|
||||||
|
service:
|
||||||
|
name: "php{{ php_version }}-fpm"
|
||||||
|
state: restarted
|
||||||
|
when: nginx_enabled
|
||||||
|
|
||||||
- name: "Add 'nginx_installed: True' to {{ iiab_state_file }}"
|
- name: "Add 'nginx_installed: True' to {{ iiab_state_file }}"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue