Skip to content

Commit

Permalink
Ensure there is always at least one PHP-FPM pool defined
Browse files Browse the repository at this point in the history
  • Loading branch information
fullyint committed Nov 5, 2016
1 parent a212765 commit 4e99bb4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions roles/php/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,6 @@
path: /var/run/php7.0-fpm/
state: directory

- name: Disable default pool
command: mv /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.0/fpm/pool.d/www.disabled
args:
creates: /etc/php/7.0/fpm/pool.d/www.disabled
when: disable_default_pool
notify: reload php-fpm

- name: PHP configuration file
template:
src: php.ini.j2
Expand Down
7 changes: 7 additions & 0 deletions roles/wordpress-setup/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
dest: /etc/php/7.0/fpm/pool.d/wordpress.conf
notify: reload php-fpm

- name: Disable default PHP-FPM pool
command: mv /etc/php/7.0/fpm/pool.d/www.conf /etc/php/7.0/fpm/pool.d/www.disabled
args:
creates: /etc/php/7.0/fpm/pool.d/www.disabled
when: disable_default_pool | default(true)
notify: reload php-fpm

- include: nginx.yml
tags: wordpress-setup-nginx

Expand Down

0 comments on commit 4e99bb4

Please sign in to comment.