mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +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
|
||||
when: ansible_machine == "x86_64"
|
||||
|
||||
- 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
|
||||
# link to php done in nginx when php-fpm is installed
|
||||
|
||||
# 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/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 }}"
|
||||
lineinfile:
|
||||
dest: "{{ iiab_state_file }}" # /etc/iiab/iiab_state.yml
|
||||
|
|
Loading…
Reference in a new issue