Use ansible module instead of command

This uses the os_client_config module to make sure the openstack
cloud configuration is well setup on the appropriate nodes.

Change-Id: I56090c233463b38832cf88b3f0d04ba1aadd4eb8
This commit is contained in:
Jean-Philippe Evrard 2018-07-31 20:49:14 +02:00
parent 6d3091b125
commit de8a2e9ecb

View File

@ -99,14 +99,16 @@
- healthcheck-repo-use - healthcheck-repo-use
# Test utility-install.yml # Test utility-install.yml
- name: Ensure utility container has clients - name: Ensure utility and localhost are ready to run openstack calls
hosts: utility_all hosts: utility_all:localhost
gather_facts: no gather_facts: no
tasks: tasks:
- name: Ensure openstackclient is installed and in path - name: Get openstack client config
command: which openstack os_client_config:
register: _openstackclient - name: Show openstack client config
debug:
var: openstack.clouds
verbosity: 1
tags: tags:
- healthcheck - healthcheck
- healthcheck-utility-install - healthcheck-utility-install