permit a shell different than nologin.
This commit is contained in:
parent
4d10b216b2
commit
335e18bcf9
|
|
@ -39,7 +39,8 @@
|
||||||
ini_file:
|
ini_file:
|
||||||
dest: '{{ phpfpm_cli_dir }}/php.ini'
|
dest: '{{ phpfpm_cli_dir }}/php.ini'
|
||||||
section: "{{ item.section | default('PHP') }}"
|
section: "{{ item.section | default('PHP') }}"
|
||||||
option: '{{ item.option }} value={{ item.value }}'
|
option: '{{ item.option }}'
|
||||||
|
value: '{{ item.value }}'
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
with_items: '{{ php_cli_global_settings | default([]) }}'
|
with_items: '{{ php_cli_global_settings | default([]) }}'
|
||||||
|
|
||||||
|
|
@ -55,7 +56,7 @@
|
||||||
notify: Restart php-fpm
|
notify: Restart php-fpm
|
||||||
|
|
||||||
- name: Create the users under the php-fpm processes will run
|
- 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 }}'
|
with_items: '{{ phpfpm_pools }}'
|
||||||
when: phpfpm_create_users
|
when: phpfpm_create_users
|
||||||
notify: Restart php-fpm
|
notify: Restart php-fpm
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue