2020-12-03 15:52:14 +01:00
|
|
|
---
|
|
|
|
|
2020-12-03 23:14:27 +01:00
|
|
|
- name: "PHP FPM-Nutzer anlegen"
|
2020-12-03 15:52:14 +01:00
|
|
|
user:
|
|
|
|
name: "{{ common_name }}"
|
|
|
|
create_home: no
|
|
|
|
password: "!"
|
2021-04-02 10:39:01 +02:00
|
|
|
groups: redis
|
2020-12-03 15:52:14 +01:00
|
|
|
shell: /bin/false
|
|
|
|
state: present
|
|
|
|
|
2020-12-03 23:14:27 +01:00
|
|
|
- name: "PHP FPM-Pool einrichten"
|
2020-12-03 15:52:14 +01:00
|
|
|
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
|