mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 08:15:54 +02:00
Update to 2022-03-07 17:00
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user