19 lines
410 B
YAML
19 lines
410 B
YAML
---
|
|
|
|
- name: "PHP FPM-Nutzer anlegen"
|
|
user:
|
|
name: "{{ common_name }}"
|
|
create_home: no
|
|
password: "!"
|
|
groups: "{{ common_name }},redis"
|
|
shell: /bin/false
|
|
state: present
|
|
|
|
- name: "PHP FPM-Pool einrichten"
|
|
template:
|
|
src: php_fpm_pool.j2
|
|
dest: "/etc/php/{{ php_version }}/fpm/pool.d/{{ common_name }}.conf"
|
|
owner: root
|
|
group: root
|
|
mode: 0644
|
|
notify: restart phpfpm
|