ansible / ansible.builtin / v2.9.27 / module / oneview_fcoe_network Manage OneView FCoE Network resources | "added in version" 2.4 of ansible.builtin" Authors: Felipe Bulsoni (@fgbulsoni) preview | supported by communityansible.builtin.oneview_fcoe_network (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Provides an interface to manage FCoE Network resources. Can create, update, or delete.
- name: Ensure that FCoE Network is present using the default configuration oneview_fcoe_network: config: '/etc/oneview/oneview_config.json' state: present data: name: Test FCoE Network vlanId: 201 delegate_to: localhost
- name: Update the FCOE network scopes oneview_fcoe_network: config: '/etc/oneview/oneview_config.json' state: present data: name: New FCoE Network scopeUris: - '/rest/scopes/00SC123456' - '/rest/scopes/01SC123456' delegate_to: localhost
- name: Ensure that FCoE Network is absent oneview_fcoe_network: config: '/etc/oneview/oneview_config.json' state: absent data: name: New FCoE Network delegate_to: localhost
data: description: - List with FCoE Network properties. required: true state: choices: - present - absent default: present description: - Indicates the desired state for the FCoE Network resource. C(present) will ensure data properties are compliant with OneView. C(absent) will remove the resource from OneView, if it exists. config: description: - Path to a .json configuration file containing the OneView client configuration. The configuration file is optional and when used should be present in the host running the ansible commands. If the file path is not provided, the configuration will be loaded from environment variables. For links to example configuration files or how to use the environment variables verify the notes section. type: path hostname: description: - IP address or hostname for the appliance. type: str password: description: - Password for API authentication. type: str username: description: - Username for API authentication. type: str api_version: description: - OneView API Version. type: int validate_etag: default: true description: - When the ETag Validation is enabled, the request will be conditionally processed only if the current ETag for the resource matches the ETag provided in the data. type: bool image_streamer_hostname: description: - IP address or hostname for the HPE Image Streamer REST API. type: str
fcoe_network: description: Has the facts about the OneView FCoE Networks. returned: On state 'present'. Can be null. type: dict