Skip to content
Snippets Groups Projects

php-fpm: Allow specifying additional groups for the user

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -31,12 +31,15 @@
@@ -31,12 +31,15 @@
user:
user:
name: "{{ item.name }}"
name: "{{ item.name }}"
group: "{{ item.name }}"
group: "{{ item.name }}"
 
groups: "{{ item.groups|default([]) }}"
system: true
system: true
home: "{{ item.home|default('/var/www/' ~ item.name) }}"
home: "{{ item.home|default('/var/www/' ~ item.name) }}"
shell: /usr/bin/nologin
shell: /usr/bin/nologin
createhome: false
createhome: false
state: present
state: present
with_items: "{{ fpm_pools|default([]) }}"
with_items: "{{ fpm_pools|default([]) }}"
 
notify:
 
- restart php-fpm
- name: ensure we have all the pools we want
- name: ensure we have all the pools we want
template:
template:
Loading