Skip to content

Commit 6250ab1

Browse files
Add defaults for ansible_local variables
1 parent bcd125c commit 6250ab1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

defaults/main.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ php:
1515
{%- else -%}
1616
https://packages.sury.org/apt.gpg
1717
{%- endif -%}
18-
version: "{{ ansible_local.php.version }}"
19-
prefix: "{{ ansible_local.php.prefix }}"
18+
version: "{{ ansible_local.php.version | default('') }}"
19+
prefix: "{{ ansible_local.php.prefix | default({}) }}"
2020
php.ini: {}
2121
fpm:
22-
service: "{{ ansible_local.php.fpm.service }}"
23-
prefix: "{{ ansible_local.php.fpm.prefix }}"
22+
service: "{{ ansible_local.php.fpm.service | default('') }}"
23+
prefix: "{{ ansible_local.php.fpm.prefix | default({}) }}"
2424
pools:
2525
www:
2626
user: proserver
2727
group: proserver
2828
listen.owner: proserver
29-
listen.group: "{{ ansible_local.php.fpm.pools.www['listen.group'] }}"
30-
listen: "{{ ansible_local.php.fpm.pools.www.listen }}"
29+
listen.group: "{{ ansible_local.php.fpm.pools.www['listen.group'] | default('') }}"
30+
listen: "{{ ansible_local.php.fpm.pools.www.listen | default({}) }}"
3131
phpfpmtop:
3232
release:
3333
url: >-

0 commit comments

Comments
 (0)