Skip to content
Snippets Groups Projects
Commit d324d218 authored by Thomas Schneider's avatar Thomas Schneider
Browse files

php-fpm: Allow specifying additional groups for the user

parent 1b91ed47
No related branches found
No related tags found
No related merge requests found
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment