mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Native YAML - cloud/openstack (#3614)
This commit is contained in:
parent
fb2ddac407
commit
d9231d065e
3 changed files with 22 additions and 11 deletions
|
@ -50,13 +50,15 @@ EXAMPLES = '''
|
||||||
# Gather facts about previously created domain
|
# Gather facts about previously created domain
|
||||||
- os_keystone_domain_facts:
|
- os_keystone_domain_facts:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
- debug: var=openstack_domains
|
- debug:
|
||||||
|
var: openstack_domains
|
||||||
|
|
||||||
# Gather facts about a previously created domain by name
|
# Gather facts about a previously created domain by name
|
||||||
- os_keystone_domain_facts:
|
- os_keystone_domain_facts:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
name: demodomain
|
name: demodomain
|
||||||
- debug: var=openstack_domains
|
- debug:
|
||||||
|
var: openstack_domains
|
||||||
|
|
||||||
# Gather facts about a previously created domain with filter
|
# Gather facts about a previously created domain with filter
|
||||||
- os_keystone_domain_facts
|
- os_keystone_domain_facts
|
||||||
|
@ -64,7 +66,8 @@ EXAMPLES = '''
|
||||||
name: demodomain
|
name: demodomain
|
||||||
filters:
|
filters:
|
||||||
enabled: False
|
enabled: False
|
||||||
- debug: var=openstack_domains
|
- debug:
|
||||||
|
var: openstack_domains
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,20 +55,23 @@ EXAMPLES = '''
|
||||||
# Gather facts about previously created projects
|
# Gather facts about previously created projects
|
||||||
- os_project_facts:
|
- os_project_facts:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
- debug: var=openstack_projects
|
- debug:
|
||||||
|
var: openstack_projects
|
||||||
|
|
||||||
# Gather facts about a previously created project by name
|
# Gather facts about a previously created project by name
|
||||||
- os_project_facts:
|
- os_project_facts:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
name: demoproject
|
name: demoproject
|
||||||
- debug: var=openstack_projects
|
- debug:
|
||||||
|
var: openstack_projects
|
||||||
|
|
||||||
# Gather facts about a previously created project in a specific domain
|
# Gather facts about a previously created project in a specific domain
|
||||||
- os_project_facts
|
- os_project_facts
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
name: demoproject
|
name: demoproject
|
||||||
domain: admindomain
|
domain: admindomain
|
||||||
- debug: var=openstack_projects
|
- debug:
|
||||||
|
var: openstack_projects
|
||||||
|
|
||||||
# Gather facts about a previously created project in a specific domain
|
# Gather facts about a previously created project in a specific domain
|
||||||
with filter
|
with filter
|
||||||
|
@ -78,7 +81,8 @@ EXAMPLES = '''
|
||||||
domain: admindomain
|
domain: admindomain
|
||||||
filters:
|
filters:
|
||||||
enabled: False
|
enabled: False
|
||||||
- debug: var=openstack_projects
|
- debug:
|
||||||
|
var: openstack_projects
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -55,20 +55,23 @@ EXAMPLES = '''
|
||||||
# Gather facts about previously created users
|
# Gather facts about previously created users
|
||||||
- os_user_facts:
|
- os_user_facts:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
- debug: var=openstack_users
|
- debug:
|
||||||
|
var: openstack_users
|
||||||
|
|
||||||
# Gather facts about a previously created user by name
|
# Gather facts about a previously created user by name
|
||||||
- os_user_facts:
|
- os_user_facts:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
name: demouser
|
name: demouser
|
||||||
- debug: var=openstack_users
|
- debug:
|
||||||
|
var: openstack_users
|
||||||
|
|
||||||
# Gather facts about a previously created user in a specific domain
|
# Gather facts about a previously created user in a specific domain
|
||||||
- os_user_facts
|
- os_user_facts
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
name: demouser
|
name: demouser
|
||||||
domain: admindomain
|
domain: admindomain
|
||||||
- debug: var=openstack_users
|
- debug:
|
||||||
|
var: openstack_users
|
||||||
|
|
||||||
# Gather facts about a previously created user in a specific domain
|
# Gather facts about a previously created user in a specific domain
|
||||||
with filter
|
with filter
|
||||||
|
@ -78,7 +81,8 @@ EXAMPLES = '''
|
||||||
domain: admindomain
|
domain: admindomain
|
||||||
filters:
|
filters:
|
||||||
enabled: False
|
enabled: False
|
||||||
- debug: var=openstack_users
|
- debug:
|
||||||
|
var: openstack_users
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue