summaryrefslogtreecommitdiffstats
path: root/tasks/main.yml
diff options
context:
space:
mode:
authorRomain Porte <microjoe@microjoe.org>2017-11-03 22:51:44 +0100
committerRomain Porte <microjoe@microjoe.org>2017-11-03 22:51:44 +0100
commitf7b1945008ae46b647da093d6f7c25f0849a75e5 (patch)
tree4154d805e48c7f20a2ea5264ba0389d4cfd23d27 /tasks/main.yml
parente8d772a8e10b7e046ec3ab5da2326ab2ba38e6e2 (diff)
downloadMicroJoe.ttrss-f7b1945008ae46b647da093d6f7c25f0849a75e5.tar.gz
MicroJoe.ttrss-f7b1945008ae46b647da093d6f7c25f0849a75e5.zip
Use dedicated php-fpm for security
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 66c7848..d197923 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -82,6 +82,22 @@
group: root
notify: restart nginx
+- name: Verify nginx configuration
+ command: nginx -t
+ changed_when: false
+
+# php-fpm
+
+- name: Install php-fpm pool configuration file
+ template:
+ src: templates/php-fpm.conf
+ dest: /etc/php/7.0/fpm/pool.d/ttrss.conf
+ notify: restart php-fpm
+
+- name: Verify php-fpm configuration
+ command: php-fpm7.0 --test
+ changed_when: false
+
# Install update feed systemd service
- name: Install systemd update service