1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-30 07:28:52 +00:00

modules: fix examples to use FQCN (#644)

* modules: fix examples to use FQCN

* fix

* fix

* fix
This commit is contained in:
Andrew Klychkov 2020-07-13 22:50:31 +03:00 committed by GitHub
parent 8b92e0454d
commit 41cfdda6a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
533 changed files with 2130 additions and 2130 deletions

View file

@ -36,7 +36,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Gather information about all Data Centers
oneview_datacenter_info:
community.general.oneview_datacenter_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -47,7 +47,7 @@ EXAMPLES = '''
msg: "{{ result.datacenters }}"
- name: Gather paginated, filtered and sorted information about Data Centers
oneview_datacenter_info:
community.general.oneview_datacenter_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -62,7 +62,7 @@ EXAMPLES = '''
msg: "{{ result.datacenters }}"
- name: Gather information about a Data Center by name
oneview_datacenter_info:
community.general.oneview_datacenter_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -74,7 +74,7 @@ EXAMPLES = '''
msg: "{{ result.datacenters }}"
- name: Gather information about the Data Center Visual Content
oneview_datacenter_info:
community.general.oneview_datacenter_info:
hostname: 172.16.101.48
username: administrator
password: my_password

View file

@ -38,7 +38,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Gather information about all Enclosures
oneview_enclosure_info:
community.general.oneview_enclosure_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -50,7 +50,7 @@ EXAMPLES = '''
msg: "{{ result.enclosures }}"
- name: Gather paginated, filtered and sorted information about Enclosures
oneview_enclosure_info:
community.general.oneview_enclosure_info:
params:
start: 0
count: 3
@ -67,7 +67,7 @@ EXAMPLES = '''
msg: "{{ result.enclosures }}"
- name: Gather information about an Enclosure by name
oneview_enclosure_info:
community.general.oneview_enclosure_info:
name: Enclosure-Name
hostname: 172.16.101.48
username: administrator
@ -80,7 +80,7 @@ EXAMPLES = '''
msg: "{{ result.enclosures }}"
- name: Gather information about an Enclosure by name with options
oneview_enclosure_info:
community.general.oneview_enclosure_info:
name: Test-Enclosure
options:
- script # optional
@ -104,7 +104,7 @@ EXAMPLES = '''
- name: "Gather information about an Enclosure with temperature data at a resolution of one sample per day, between two
specified dates"
oneview_enclosure_info:
community.general.oneview_enclosure_info:
name: Test-Enclosure
options:
- utilization: # optional

View file

@ -38,7 +38,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Ensure that the Ethernet Network is present using the default configuration
oneview_ethernet_network:
community.general.oneview_ethernet_network:
config: '/etc/oneview/oneview_config.json'
state: present
data:
@ -47,7 +47,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Update the Ethernet Network changing bandwidth and purpose
oneview_ethernet_network:
community.general.oneview_ethernet_network:
config: '/etc/oneview/oneview_config.json'
state: present
data:
@ -59,7 +59,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Ensure that the Ethernet Network is present with name 'Renamed Ethernet Network'
oneview_ethernet_network:
community.general.oneview_ethernet_network:
config: '/etc/oneview/oneview_config.json'
state: present
data:
@ -68,7 +68,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Ensure that the Ethernet Network is absent
oneview_ethernet_network:
community.general.oneview_ethernet_network:
config: '/etc/oneview/oneview_config.json'
state: absent
data:
@ -76,7 +76,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Create Ethernet networks in bulk
oneview_ethernet_network:
community.general.oneview_ethernet_network:
config: '/etc/oneview/oneview_config.json'
state: present
data:
@ -91,7 +91,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Reset to the default network connection template
oneview_ethernet_network:
community.general.oneview_ethernet_network:
config: '/etc/oneview/oneview_config.json'
state: default_bandwidth_reset
data:

View file

@ -35,7 +35,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Gather information about all Ethernet Networks
oneview_ethernet_network_info:
community.general.oneview_ethernet_network_info:
config: /etc/oneview/oneview_config.json
delegate_to: localhost
register: result
@ -44,7 +44,7 @@ EXAMPLES = '''
msg: "{{ result.ethernet_networks }}"
- name: Gather paginated and filtered information about Ethernet Networks
oneview_ethernet_network_info:
community.general.oneview_ethernet_network_info:
config: /etc/oneview/oneview_config.json
params:
start: 1
@ -58,7 +58,7 @@ EXAMPLES = '''
msg: "{{ result.ethernet_networks }}"
- name: Gather information about an Ethernet Network by name
oneview_ethernet_network_info:
community.general.oneview_ethernet_network_info:
config: /etc/oneview/oneview_config.json
name: Ethernet network name
delegate_to: localhost
@ -68,7 +68,7 @@ EXAMPLES = '''
msg: "{{ result.ethernet_networks }}"
- name: Gather information about an Ethernet Network by name with options
oneview_ethernet_network_info:
community.general.oneview_ethernet_network_info:
config: /etc/oneview/oneview_config.json
name: eth1
options:

View file

@ -34,14 +34,14 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Ensure that the Fibre Channel Network is present using the default configuration
oneview_fc_network:
community.general.oneview_fc_network:
config: "{{ config_file_path }}"
state: present
data:
name: 'New FC Network'
- name: Ensure that the Fibre Channel Network is present with fabricType 'DirectAttach'
oneview_fc_network:
community.general.oneview_fc_network:
config: "{{ config_file_path }}"
state: present
data:
@ -49,7 +49,7 @@ EXAMPLES = '''
fabricType: 'DirectAttach'
- name: Ensure that the Fibre Channel Network is present and is inserted in the desired scopes
oneview_fc_network:
community.general.oneview_fc_network:
config: "{{ config_file_path }}"
state: present
data:
@ -59,7 +59,7 @@ EXAMPLES = '''
- '/rest/scopes/01SC123456'
- name: Ensure that the Fibre Channel Network is absent
oneview_fc_network:
community.general.oneview_fc_network:
config: "{{ config_file_path }}"
state: absent
data:

View file

@ -32,7 +32,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Gather information about all Fibre Channel Networks
oneview_fc_network_info:
community.general.oneview_fc_network_info:
config: /etc/oneview/oneview_config.json
delegate_to: localhost
register: result
@ -41,7 +41,7 @@ EXAMPLES = '''
msg: "{{ result.fc_networks }}"
- name: Gather paginated, filtered and sorted information about Fibre Channel Networks
oneview_fc_network_info:
community.general.oneview_fc_network_info:
config: /etc/oneview/oneview_config.json
params:
start: 1
@ -54,7 +54,7 @@ EXAMPLES = '''
msg: "{{ result.fc_networks }}"
- name: Gather information about a Fibre Channel Network by name
oneview_fc_network_info:
community.general.oneview_fc_network_info:
config: /etc/oneview/oneview_config.json
name: network name
delegate_to: localhost

View file

@ -36,7 +36,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Ensure that FCoE Network is present using the default configuration
oneview_fcoe_network:
community.general.oneview_fcoe_network:
config: '/etc/oneview/oneview_config.json'
state: present
data:
@ -45,7 +45,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Update the FCOE network scopes
oneview_fcoe_network:
community.general.oneview_fcoe_network:
config: '/etc/oneview/oneview_config.json'
state: present
data:
@ -56,7 +56,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Ensure that FCoE Network is absent
oneview_fcoe_network:
community.general.oneview_fcoe_network:
config: '/etc/oneview/oneview_config.json'
state: absent
data:

View file

@ -31,7 +31,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Gather information about all FCoE Networks
oneview_fcoe_network_info:
community.general.oneview_fcoe_network_info:
config: /etc/oneview/oneview_config.json
delegate_to: localhost
register: result
@ -40,7 +40,7 @@ EXAMPLES = '''
msg: "{{ result.fcoe_networks }}"
- name: Gather paginated, filtered and sorted information about FCoE Networks
oneview_fcoe_network_info:
community.general.oneview_fcoe_network_info:
config: /etc/oneview/oneview_config.json
params:
start: 0
@ -54,7 +54,7 @@ EXAMPLES = '''
msg: "{{ result.fcoe_networks }}"
- name: Gather information about a FCoE Network by name
oneview_fcoe_network_info:
community.general.oneview_fcoe_network_info:
config: /etc/oneview/oneview_config.json
name: Test FCoE Network Information
delegate_to: localhost

View file

@ -38,7 +38,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Ensure that the Logical Interconnect Group is present
oneview_logical_interconnect_group:
community.general.oneview_logical_interconnect_group:
config: /etc/oneview/oneview_config.json
state: present
data:
@ -59,7 +59,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Ensure that the Logical Interconnect Group has the specified scopes
oneview_logical_interconnect_group:
community.general.oneview_logical_interconnect_group:
config: /etc/oneview/oneview_config.json
state: present
data:
@ -70,7 +70,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Ensure that the Logical Interconnect Group is present with name 'Test'
oneview_logical_interconnect_group:
community.general.oneview_logical_interconnect_group:
config: /etc/oneview/oneview_config.json
state: present
data:
@ -79,7 +79,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Ensure that the Logical Interconnect Group is absent
oneview_logical_interconnect_group:
community.general.oneview_logical_interconnect_group:
config: /etc/oneview/oneview_config.json
state: absent
data:

View file

@ -32,7 +32,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Gather information about all Logical Interconnect Groups
oneview_logical_interconnect_group_info:
community.general.oneview_logical_interconnect_group_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -45,7 +45,7 @@ EXAMPLES = '''
msg: "{{ result.logical_interconnect_groups }}"
- name: Gather paginated, filtered and sorted information about Logical Interconnect Groups
oneview_logical_interconnect_group_info:
community.general.oneview_logical_interconnect_group_info:
params:
start: 0
count: 3
@ -63,7 +63,7 @@ EXAMPLES = '''
msg: "{{ result.logical_interconnect_groups }}"
- name: Gather information about a Logical Interconnect Group by name
oneview_logical_interconnect_group_info:
community.general.oneview_logical_interconnect_group_info:
name: logical interconnect group name
hostname: 172.16.101.48
username: administrator

View file

@ -38,7 +38,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Create a Network Set
oneview_network_set:
community.general.oneview_network_set:
config: /etc/oneview/oneview_config.json
state: present
data:
@ -49,7 +49,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Update the Network Set name to 'OneViewSDK Test Network Set - Renamed' and change the associated networks
oneview_network_set:
community.general.oneview_network_set:
config: /etc/oneview/oneview_config.json
state: present
data:
@ -60,7 +60,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Delete the Network Set
oneview_network_set:
community.general.oneview_network_set:
config: /etc/oneview/oneview_config.json
state: absent
data:
@ -68,7 +68,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Update the Network set with two scopes
oneview_network_set:
community.general.oneview_network_set:
config: /etc/oneview/oneview_config.json
state: present
data:

View file

@ -38,7 +38,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Gather information about all Network Sets
oneview_network_set_info:
community.general.oneview_network_set_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -51,7 +51,7 @@ EXAMPLES = '''
msg: "{{ result.network_sets }}"
- name: Gather paginated, filtered, and sorted information about Network Sets
oneview_network_set_info:
community.general.oneview_network_set_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -69,7 +69,7 @@ EXAMPLES = '''
msg: "{{ result.network_sets }}"
- name: Gather information about all Network Sets, excluding Ethernet networks
oneview_network_set_info:
community.general.oneview_network_set_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -84,7 +84,7 @@ EXAMPLES = '''
msg: "{{ result.network_sets }}"
- name: Gather information about a Network Set by name
oneview_network_set_info:
community.general.oneview_network_set_info:
hostname: 172.16.101.48
username: administrator
password: my_password
@ -98,7 +98,7 @@ EXAMPLES = '''
msg: "{{ result.network_sets }}"
- name: Gather information about a Network Set by name, excluding Ethernet networks
oneview_network_set_info:
community.general.oneview_network_set_info:
hostname: 172.16.101.48
username: administrator
password: my_password

View file

@ -39,7 +39,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Creates a Device Manager for the Brocade SAN provider with the given hostname and credentials
oneview_san_manager:
community.general.oneview_san_manager:
config: /etc/oneview/oneview_config.json
state: present
data:
@ -58,7 +58,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Ensure a Device Manager for the Cisco SAN Provider is present
oneview_san_manager:
community.general.oneview_san_manager:
config: /etc/oneview/oneview_config.json
state: present
data:
@ -80,7 +80,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Sets the SAN Manager connection information
oneview_san_manager:
community.general.oneview_san_manager:
config: /etc/oneview/oneview_config.json
state: connection_information_set
data:
@ -98,7 +98,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Refreshes the SAN Manager
oneview_san_manager:
community.general.oneview_san_manager:
config: /etc/oneview/oneview_config.json
state: present
data:
@ -107,7 +107,7 @@ EXAMPLES = '''
delegate_to: localhost
- name: Delete the SAN Manager recently created
oneview_san_manager:
community.general.oneview_san_manager:
config: /etc/oneview/oneview_config.json
state: absent
data:

View file

@ -38,7 +38,7 @@ extends_documentation_fragment:
EXAMPLES = '''
- name: Gather information about all SAN Managers
oneview_san_manager_info:
community.general.oneview_san_manager_info:
config: /etc/oneview/oneview_config.json
delegate_to: localhost
register: result
@ -47,7 +47,7 @@ EXAMPLES = '''
msg: "{{ result.san_managers }}"
- name: Gather paginated, filtered and sorted information about SAN Managers
oneview_san_manager_info:
community.general.oneview_san_manager_info:
config: /etc/oneview/oneview_config.json
params:
start: 0
@ -61,7 +61,7 @@ EXAMPLES = '''
msg: "{{ result.san_managers }}"
- name: Gather information about a SAN Manager by provider display name
oneview_san_manager_info:
community.general.oneview_san_manager_info:
config: /etc/oneview/oneview_config.json
provider_display_name: Brocade Network Advisor
delegate_to: localhost