Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
medanthelinium committed Nov 29, 2023
1 parent 30fbda6 commit 51506f8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
php:
version:
prefix:
config: >-
{%- if ansible_os_family == 'Debian' -%}
/etc/php/{{ php_version }}/cli
/etc/php/{{ vars.php.version }}/cli
{%- else -%}
/usr/local/etc
{%- endif -%}
Expand All @@ -17,20 +18,20 @@ php:
fpm:
service: >-
{%- if ansible_os_family == 'Debian' -%}
php{{ php_version }}-fpm
php{{ vars.php.version }}-fpm
{%- else -%}
php-fpm
{%- endif -%}
prefix:
config: >-
{%- if ansible_os_family == 'Debian' -%}
/etc/php/{{ php_version }}/fpm
/etc/php/{{ vars.php.version }}/fpm
{%- else -%}
/usr/local/etc
{%- endif -%}
pool_config: >-
{%- if ansible_os_family == 'Debian' -%}
/etc/php/{{ php_version }}/fpm/pool.d
/etc/php/{{ vars.php.version }}/fpm/pool.d
{%- else -%}
/usr/local/etc/php-fpm.d
{%- endif -%}
Expand All @@ -47,7 +48,7 @@ php:
{%- endif -%}
listen: >-
{%- if ansible_os_family == 'Debian' -%}
/run/php/php{{ php_version }}-fpm.sock
/run/php/php{{ vars.php.version }}-fpm.sock
{%- else -%}
/var/run/php-fpm/php-fpm.socket
{%- endif -%}
Expand Down

0 comments on commit 51506f8

Please sign in to comment.