ansible.builtin.netapp_e_host (v2.3.3.0-1) — module

manage eseries hosts

| "added in version" 2.2 of ansible.builtin"

Authors: Kevin Hulquest (@hulquest)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.3.0.post1

Description

Create, update, remove hosts on NetApp E-series storage arrays

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
    - name: Set Host Info
      netapp_e_host:
        ssid: "{{ ssid }}"
        api_url: "{{ netapp_api_url }}"
        api_username: "{{ netapp_api_username }}"
        api_password: "{{ netapp_api_password }}"
        name: "{{ host_name }}"
        host_type_index: "{{ host_type_index }}"

Inputs

    
name:
    description:
    - If the host doesnt yet exist, the label to assign at creation time.
    - If the hosts already exists, this is what is used to identify the host to apply
      any desired changes
    required: true

ssid:
    description:
    - the id of the storage array you wish to act against
    required: true

group:
    description:
    - the group you want the host to be a member of
    required: false

ports:
    description:
    - a list of of dictionaries of host ports you wish to associate with the newly created
      host
    required: false

api_url:
    description:
    - The url to the SANtricity WebServices Proxy or embedded REST API, for example C(https://prod-1.wahoo.acme.com/devmgr/v2).
    required: true

api_password:
    description:
    - The password to authenticate with the SANtricity WebServices Proxy or embedded REST
      API.
    required: true

api_username:
    description:
    - The username to authenticate with the SANtricity WebServices Proxy or embedded REST
      API.
    required: true

validate_certs:
    default: true
    description:
    - Should https certificates be validated?
    required: false

host_type_index:
    description:
    - The index that maps to host type you wish to create. It is recommended to use the
      M(netapp_e_facts) module to gather this information. Alternatively you can use the
      WSP portal to retrieve the information.
    required: true

Outputs

msg:
  description: Success message
  returned: success
  sample: The host has been created.
  type: string