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.

27 lines
590 B
YAML

---
- name: Configure socket permission
file:
path: "{{ socket_directory }}"
state: directory
owner: "{{ system_user }}"
group: "{{ nginx_system_user }}"
mode: "u=rwx,g=rx,o="
- name: Check if src is a directory
file:
path: "{{ src }}"
state: directory
owner: "{{ system_user }}"
group: "{{ nginx_system_user }}"
mode: "u=rwx,g=rx,o="
- 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=
notify: "reload php-fpm"