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

22 lines
565 B
YAML

---
#
# Tasks to get cinder facts
#
- name: Check that Ceilometer is installed
become: true
stat: path=/etc/cinder/cinder.conf
register: cinder_config
- name: Parse Cinder config
become: true
command: python /tmp/openstack-config-parser.py cinder /tmp/out.yml
when: cinder_config.stat.exists
- name: Fetch output
fetch: src=/tmp/out.yml dest=/tmp/out-{{ inventory_hostname }}.yml flat=yes
when: cinder_config.stat.exists
- name: Load configuration variables
include_vars: /tmp/out-{{ inventory_hostname }}.yml
when: cinder_config.stat.exists