Skip to content

Commit

Permalink
Merge pull request #682 from roots/php-fpm-pool
Browse files Browse the repository at this point in the history
Ensure there is always at least one PHP-FPM pool defined
  • Loading branch information
fullyint authored Nov 6, 2016
2 parents a212765 + eaa3cde commit e6bf2ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Ensure there is always at least one PHP-FPM pool defined ([#682](https://github.com/roots/trellis/pull/682))
* Update galaxy roles for Ansible 2.2 compatibility ([#681](https://github.com/roots/trellis/pull/681))
* Update to WP-CLI 0.25.0 for WP 4.7 compat ([#673](https://github.com/roots/trellis/pull/673))
* Enable per-site setup for permalink structure ([#661](https://github.com/roots/trellis/pull/661))
Expand Down
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 e6bf2ef

Please sign in to comment.