Refactored config module

Change-Id: I7ba626e2ef2a108bf79cacd8d6ee0735b8a0bdeb
This commit is contained in:
Jakob Meng
2022-11-03 12:47:20 +01:00
parent a8f6dbd904
commit d07778c24a
5 changed files with 61 additions and 38 deletions

View File

@@ -1,7 +0,0 @@
---
- name: List all profiles
openstack.cloud.config:
register: list
# WARNING: This will output sensitive authentication information!!!!
- debug: var=list

View File

@@ -0,0 +1,10 @@
---
- name: List all cloud profiles
openstack.cloud.config:
register: config
# WARNING: This will output sensitive authentication information!!!!
- name: Assert config module
assert:
that:
- cloud in (config.clouds | map(attribute='name') | list)