diff --git a/tasks/main.yml b/tasks/main.yml index 2f57280..460aa66 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,4 +22,3 @@ - name: Monitoring tasks ansible.builtin.import_tasks: monitoring.yml tags: monitoring - diff --git a/tasks/user.yml b/tasks/user.yml index 16cc6e8..81c727e 100644 --- a/tasks/user.yml +++ b/tasks/user.yml @@ -18,7 +18,7 @@ state: touch owner: "{{ php_user }}" group: "{{ php_user }}" - mode: 0644 + mode: "0644" # Pool configuration for initial use # Don't override local changes @@ -27,7 +27,7 @@ src: fpmpool.cfg dest: "/etc/php/{{ php_version.stdout }}/fpm/pool.d/{{ php_user }}.cfg" force: false - mode: 0644 + mode: "0644" notify: - stop php-fpm-socket - stop php-fpm-service diff --git a/templates/monit.j2 b/templates/monit.j2 index 3181ece..8f715d5 100644 --- a/templates/monit.j2 +++ b/templates/monit.j2 @@ -7,7 +7,7 @@ check process php-fpm with pidfile /run/php/php{{ php_version.stdout }}-fpm.pid if failed unixsocket /run/php/php{{ php_version.stdout }}-fpm.sock for 3 cycles then restart if 3 restarts within 5 cycles then timeout -{% if apache2 in ansible_facts.packages %} +{% if "apache2" in ansible_facts.packages %} check file basedir with path /var/log/apache2/error.log if match "open_basedir restriction in effect" then alert {% endif %}