Refactored identity_domain{,_info} modules

Change-Id: Idf48f10e66a5651fa4693774eecd2c8683703082
This commit is contained in:
Jakob Meng
2023-01-13 09:05:57 +01:00
parent a4a6e6d4ec
commit 16a8a9e5d4
13 changed files with 292 additions and 335 deletions

View File

@@ -22,13 +22,9 @@
openstack.cloud.identity_domain:
name: '{{ domain_name }}'
register: create_domain
- assert:
that:
- create_domain is successful
- '"id" in create_domain'
- name: 'Store domain ID as fact'
set_fact:
domain_id: '{{ create_domain.id }}'
domain_id: '{{ create_domain.domain.id }}'
# We *should* have a blank slate to start with, but we also shouldn't
# explode if I(state=absent) and the IDP doesn't exist