You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
829 B
YAML
39 lines
829 B
YAML
5 years ago
|
---
|
||
|
|
||
|
# TODO Remove
|
||
|
#- name: Configure system user {{ system_user }}
|
||
|
# user:
|
||
|
# state: present
|
||
|
# name: "{{ system_user }}"
|
||
|
# groups:
|
||
|
# - www-data
|
||
|
# system: yes
|
||
|
# shell: /bin/false
|
||
|
# create_home: no
|
||
|
# move_home: no
|
||
|
|
||
|
- name: Configure socket permission
|
||
|
file:
|
||
|
path: "{{ socket_directory }}"
|
||
|
state: directory
|
||
|
owner: "{{ system_user }}"
|
||
|
group: "{{ nginx_system_user }}"
|
||
|
mode: "u=rwx,g=rx"
|
||
|
|
||
|
- name: Check if src is a directory
|
||
|
file:
|
||
|
path: "{{ src }}"
|
||
|
state: directory
|
||
|
owner: "{{ system_user }}"
|
||
|
group: "{{ system_user }}"
|
||
|
mode: "u=rwx,g=rx"
|
||
|
|
||
|
- name: Configure pool in php-fpm
|
||
|
template:
|
||
|
src: pool.conf
|
||
|
dest: "{{ phpfpm_pools_directory }}/{{ pool_name }}.conf"
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: "u=rw,g=r,o=r"
|
||
|
notify: "reload {{ phpfpm_package }}"
|