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
# Test utility-install.yml
- name: Ensure utility container has clients
hosts: utility_all
- name: Ensure utility and localhost are ready to run openstack calls
hosts: utility_all:localhost
gather_facts: no
tasks:
- name: Ensure openstackclient is installed and in path
command: which openstack
register: _openstackclient
- name: Get openstack client config
os_client_config:
- name: Show openstack client config
debug:
var: openstack.clouds
verbosity: 1
tags:
- healthcheck
- healthcheck-utility-install