permit a shell different than nologin.

This commit is contained in:
Andrea Dell'Amico 2022-01-10 21:27:01 +01:00
parent 4d10b216b2
commit 335e18bcf9
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 2 deletions

View File

@ -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