Update os_group_info.py (#65115)
This commit is contained in:
parent
6d65280dfc
commit
d85816396e
1 changed files with 43 additions and 27 deletions
|
@ -47,14 +47,22 @@ options:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Gather info about previously created groups
|
# Gather info about previously created groups
|
||||||
- os_group_info:
|
- name: gather info
|
||||||
|
hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Gather info about previously created groups
|
||||||
|
os_group_info:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
register: openstack_groups
|
register: openstack_groups
|
||||||
- debug:
|
- debug:
|
||||||
var: openstack_groups
|
var: openstack_groups
|
||||||
|
|
||||||
# Gather info about a previously created group by name
|
# Gather info about a previously created group by name
|
||||||
- os_group_info:
|
- name: gather info
|
||||||
|
hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Gather info about a previously created group by name
|
||||||
|
os_group_info:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
name: demogroup
|
name: demogroup
|
||||||
register: openstack_groups
|
register: openstack_groups
|
||||||
|
@ -62,7 +70,11 @@ EXAMPLES = '''
|
||||||
var: openstack_groups
|
var: openstack_groups
|
||||||
|
|
||||||
# Gather info about a previously created group in a specific domain
|
# Gather info about a previously created group in a specific domain
|
||||||
- os_group_info:
|
- name: gather info
|
||||||
|
hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Gather info about a previously created group in a specific domain
|
||||||
|
os_group_info:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
name: demogroup
|
name: demogroup
|
||||||
domain: admindomain
|
domain: admindomain
|
||||||
|
@ -71,7 +83,11 @@ EXAMPLES = '''
|
||||||
var: openstack_groups
|
var: openstack_groups
|
||||||
|
|
||||||
# Gather info about a previously created group in a specific domain with filter
|
# Gather info about a previously created group in a specific domain with filter
|
||||||
- os_group_info:
|
- name: gather info
|
||||||
|
hosts: localhost
|
||||||
|
tasks:
|
||||||
|
- name: Gather info about a previously created group in a specific domain with filter
|
||||||
|
os_group_info:
|
||||||
cloud: awesomecloud
|
cloud: awesomecloud
|
||||||
name: demogroup
|
name: demogroup
|
||||||
domain: admindomain
|
domain: admindomain
|
||||||
|
|
Loading…
Reference in a new issue