Skip to content
Snippets Groups Projects
Commit dad2c05b authored by Lars Beckers's avatar Lars Beckers
Browse files

php-fpm: name task; fix yamllint issues; fix shell module usage

parent 109c5022
No related branches found
No related tags found
No related merge requests found
---
- include_vars: "{{ debian_version }}.yml"
- name: include debian version specific vars
include_vars: "{{ debian_version }}.yml"
- name: ensure php-fpm is installed
apt:
......@@ -46,7 +47,13 @@
- restart php-fpm
- name: get remote active php pools
shell: "systemctl list-units --state=loaded | grep uwsgi@ | sed -E 's/.*uwsgi@(.*)\\.service.*/\\1/'"
# yamllint disable rule:line-length
shell: |
set -o pipefail
systemctl list-units --state=loaded | grep uwsgi@ | sed -E 's/.*uwsgi@(.*)\\.service.*/\\1/'
args:
executable: /bin/bash
# yamllint enable rule:line-length
changed_when: false
register: running_pools
......@@ -55,6 +62,7 @@
name: "php-fpm@{{ item }}"
enabled: false
state: stopped
# yamllint disable-line rule:line-length
with_items: "{{ running_pools.stdout_lines|difference(fpm_pools|map(attribute=name))|list }}"
- meta: flush_handlers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment