|
|
|
@ -47,39 +47,55 @@ options:
|
|
|
|
|
|
|
|
|
|
EXAMPLES = '''
|
|
|
|
|
# Gather info about previously created groups
|
|
|
|
|
- os_group_info:
|
|
|
|
|
cloud: awesomecloud
|
|
|
|
|
register: openstack_groups
|
|
|
|
|
- debug:
|
|
|
|
|
var: openstack_groups
|
|
|
|
|
- name: gather info
|
|
|
|
|
hosts: localhost
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Gather info about previously created groups
|
|
|
|
|
os_group_info:
|
|
|
|
|
cloud: awesomecloud
|
|
|
|
|
register: openstack_groups
|
|
|
|
|
- debug:
|
|
|
|
|
var: openstack_groups
|
|
|
|
|
|
|
|
|
|
# Gather info about a previously created group by name
|
|
|
|
|
- os_group_info:
|
|
|
|
|
cloud: awesomecloud
|
|
|
|
|
name: demogroup
|
|
|
|
|
register: openstack_groups
|
|
|
|
|
- debug:
|
|
|
|
|
var: openstack_groups
|
|
|
|
|
- name: gather info
|
|
|
|
|
hosts: localhost
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Gather info about a previously created group by name
|
|
|
|
|
os_group_info:
|
|
|
|
|
cloud: awesomecloud
|
|
|
|
|
name: demogroup
|
|
|
|
|
register: openstack_groups
|
|
|
|
|
- debug:
|
|
|
|
|
var: openstack_groups
|
|
|
|
|
|
|
|
|
|
# Gather info about a previously created group in a specific domain
|
|
|
|
|
- os_group_info:
|
|
|
|
|
cloud: awesomecloud
|
|
|
|
|
name: demogroup
|
|
|
|
|
domain: admindomain
|
|
|
|
|
register: openstack_groups
|
|
|
|
|
- debug:
|
|
|
|
|
var: openstack_groups
|
|
|
|
|
- name: gather info
|
|
|
|
|
hosts: localhost
|
|
|
|
|
tasks:
|
|
|
|
|
- name: Gather info about a previously created group in a specific domain
|
|
|
|
|
os_group_info:
|
|
|
|
|
cloud: awesomecloud
|
|
|
|
|
name: demogroup
|
|
|
|
|
domain: admindomain
|
|
|
|
|
register: openstack_groups
|
|
|
|
|
- debug:
|
|
|
|
|
var: openstack_groups
|
|
|
|
|
|
|
|
|
|
# Gather info about a previously created group in a specific domain with filter
|
|
|
|
|
- os_group_info:
|
|
|
|
|
cloud: awesomecloud
|
|
|
|
|
name: demogroup
|
|
|
|
|
domain: admindomain
|
|
|
|
|
filters:
|
|
|
|
|
enabled: False
|
|
|
|
|
register: openstack_groups
|
|
|
|
|
- debug:
|
|
|
|
|
var: openstack_groups
|
|
|
|
|
- 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
|
|
|
|
|
name: demogroup
|
|
|
|
|
domain: admindomain
|
|
|
|
|
filters:
|
|
|
|
|
enabled: False
|
|
|
|
|
register: openstack_groups
|
|
|
|
|
- debug:
|
|
|
|
|
var: openstack_groups
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|