From de8a2e9ecb693ec07448ccf7de42118f19624e56 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Tue, 31 Jul 2018 20:49:14 +0200 Subject: [PATCH] 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 --- playbooks/healthcheck-infrastructure.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/playbooks/healthcheck-infrastructure.yml b/playbooks/healthcheck-infrastructure.yml index 27b885adb2..38318328b8 100644 --- a/playbooks/healthcheck-infrastructure.yml +++ b/playbooks/healthcheck-infrastructure.yml @@ -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