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:
parent
6d3091b125
commit
de8a2e9ecb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user