Chuck Short 959bed59a5 Enable linter test for ANSIBLE0013
Use shell only shell functionality is required.
The shell functionality should only be used when piping, redirecting or
chaining commands.

Change-Id: Icb9b1dd5ea22a2af895a87a9fa2cc1b9a488ac0c
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-10 14:28:36 +00:00

16 lines
482 B
YAML

---
#
# Gnocchi tasks for performance checks
#
- name: Get httpd configuration files
command: 'ls /etc/httpd/conf.d/'
register: httpd_confd_files
- name: Gnocchi API httpd process count
shell: egrep -o "processes=[0-9]+" /etc/httpd/conf.d/*gnocchi_wsgi.conf | egrep -o "[0-9]+"
register: bz1372821
failed_when: bz1372821.stdout|int < gnocchi_api_processes and 'gnocchi' in httpd_confd_files.stdout
when: (inventory_hostname in groups.controller)
ignore_errors: True