community.general.infini_host (0.2.1) — module

Create, Delete and Modify Hosts on Infinibox

Authors: Gregory Shulov (@GR360RY)

Install collection

Install with ansible-galaxy collection install community.general:==0.2.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.2.1

Description

This module creates, deletes or modifies hosts on Infinibox.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create new new host
  infini_host:
    name: foo.example.com
    user: admin
    password: secret
    system: ibox001
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Make sure host bar is available with wwn ports
  infini_host:
    name: bar.example.com
    wwns:
      - "00:00:00:00:00:00:00"
      - "11:11:11:11:11:11:11"
    system: ibox01
    user: admin
    password: secret
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Map host foo.example.com to volume bar
  infini_host:
    name: foo.example.com
    volume: bar
    system: ibox01
    user: admin
    password: secret

Inputs

    
name:
    description:
    - Host Name
    required: true

user:
    description:
    - Infinibox User username with sufficient priveledges ( see notes ).
    required: false

wwns:
    description:
    - List of wwns of the host
    required: false

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Creates/Modifies Host when present or removes when absent
    required: false

system:
    description:
    - Infinibox Hostname or IPv4 Address.
    required: true
    type: str

volume:
    description:
    - Volume name to map to the host
    required: false

password:
    description:
    - Infinibox User password.
    type: str