diff --git a/tasks/main.yml b/tasks/main.yml index 1725630..181c406 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -39,7 +39,8 @@ ini_file: dest: '{{ phpfpm_cli_dir }}/php.ini' section: "{{ item.section | default('PHP') }}" - option: '{{ item.option }} value={{ item.value }}' + option: '{{ item.option }}' + value: '{{ item.value }}' state: "{{ item.state | default('present') }}" with_items: '{{ php_cli_global_settings | default([]) }}' @@ -55,7 +56,7 @@ notify: Restart php-fpm - name: Create the users under the php-fpm processes will run - user: name={{ item.user }} comment="{{ item.user }}" home=/dev/null createhome=no shell=/usr/sbin/nologin system=yes + user: name={{ item.user }} comment="{{ item.user }}" home=/dev/null createhome=no shell={{ item.shell | default('/usr/sbin/nologin') }} system=yes with_items: '{{ phpfpm_pools }}' when: phpfpm_create_users notify: Restart php-fpm