Skip to content
Snippets Groups Projects
Commit 25d5dd96 authored by Hinrikus Wolf's avatar Hinrikus Wolf
Browse files

Merge branch 'th/php-fpm-groups' into 'master'

php-fpm: Allow specifying additional groups for the user

See merge request !7
parents 1b91ed47 d324d218
Branches
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