Compare commits

...

7 Commits

Author SHA1 Message Date
Jeff Geerling 968636be8b
Merge pull request #397 from BartOpitz/bugfix/with_flattened
fix with_flattened
2023-06-21 22:30:13 -05:00
Jeff Geerling 19956ca910 Issue #408: Tweak spacing. 2023-06-21 22:28:38 -05:00
Jeff Geerling 2d4501688a
Merge pull request #408 from KiweeEu/feature/do-not-run-php-fpm-in-check-mode
Do not run php-fpm service when ansible is in check mode
2023-06-21 22:27:57 -05:00
Jeff Geerling 3a6b924388
Merge pull request #394 from blizzz/fix-max_requests
Fix variable name for pm.max_requests.
2023-06-21 22:27:23 -05:00
Vlad von Hraban f00951fe73 Do not run php-fpm when ansible is in check mode 2023-05-22 14:50:07 +07:00
Bartlomiej Sowa 7040702c5e fix with_flattened 2023-03-30 16:41:34 +02:00
Max Roeleveld 1f2349a5da
Fix variable name for pm.max_requests. 2023-03-17 12:28:34 +01:00
4 changed files with 11 additions and 7 deletions

View File

@ -43,7 +43,7 @@ php_fpm_pools:
pool_pm_start_servers: "{{ php_fpm_pm_start_servers }}"
pool_pm_min_spare_servers: "{{ php_fpm_pm_min_spare_servers }}"
pool_pm_max_spare_servers: "{{ php_fpm_pm_max_spare_servers }}"
pool_php_fpm_pm_max_requests: "{{ php_fpm_pm_max_requests }}"
pool_pm_max_requests: "{{ php_fpm_pm_max_requests }}"
# The executable to run when calling PHP from the command line.
php_executable: "php"

View File

@ -13,3 +13,4 @@
when:
- php_enable_php_fpm
- php_fpm_state == 'started'
- not ansible_check_mode

View File

@ -50,4 +50,7 @@
name: "{{ php_fpm_daemon }}"
state: "{{ php_fpm_state }}"
enabled: "{{ php_fpm_enabled_on_boot }}"
when: php_enable_php_fpm and ansible_distribution != "Debian"
when:
- php_enable_php_fpm
- ansible_distribution != "Debian"
- not ansible_check_mode

View File

@ -1,16 +1,16 @@
---
- name: Ensure configuration directories exist.
file:
ansible.builtin.file:
path: "{{ item }}"
state: directory
follow: true
mode: 0755
with_flattened:
- "{{ php_conf_paths }}"
- "{{ php_extension_conf_paths }}"
with_items:
- "{{ php_conf_paths | flatten }}"
- "{{ php_extension_conf_paths | flatten }}"
- name: Place PHP configuration file in place.
template:
ansible.builtin.template:
src: php.ini.j2
dest: "{{ item }}/php.ini"
owner: root