Update to 2022-03-07 17:00

This commit is contained in:
Daniel Berteaud
2022-03-07 17:00:06 +01:00
parent 1065df387c
commit 714e44f5c5
42 changed files with 92 additions and 136 deletions

View File

@@ -1,7 +1,5 @@
---
- include: ../httpd_common/handlers/main.yml
# We need to stop all the pools and then start them again
# because if we move one pool config from one version to another
# the socket might not be removed at the correct time, depending on the

View File

@@ -56,7 +56,11 @@
tags: web
- name: Create user accounts for ansible PHP FPM pools
user: name={{ item }} comment="PHP FPM {{ item }}" system=True shell=/sbin/nologin
user:
name: "{{ item }}"
comment: "PHP FPM {{ item }}"
system: True
shell: /sbin/nologin
loop: "{{ httpd_php_ansible_pools | default([]) | selectattr('user', 'defined') | map(attribute='user') | list }}"
tags: web
@@ -73,14 +77,15 @@
tags: web
- name: Start and enable SCL PHP FPM services
service: name=php{{ item }}-php-fpm state=started enabled=yes
service: name=php{{ item }}-php-fpm state=started enabled=True
loop: "{{ httpd_php_versions }}"
tags: web
- name: Deploy httpd configuration fragments
template: src={{ item.src }} dest={{ item.dest }}
loop:
- { src: httpd_php.conf.j2, dest: /etc/httpd/ansible_conf.d/php.conf }
- src: httpd_php.conf.j2
dest: /etc/httpd/ansible_conf.d/php.conf
notify: reload httpd
tags: web