gmoisio.ale.ale_aos_facts (1.3.0) — module

Get ALE OmniSwitch device informations and return a dictionary of lists.

| "added in version" 1.2.2 of gmoisio.ale"

Authors: Gilbert MOISIO

stableinterface | supported by community

Install collection

Install with ansible-galaxy collection install gmoisio.ale:==1.3.0


Add to requirements.yml

  collections:
    - name: gmoisio.ale
      version: 1.3.0

Description

Get device informations using getters selector and return a dictionary formatted output.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- gmoisio.ale.ale_aos_facts: 
    host: "{{ ansible_host }}"
    username: admin
    password: switch
    sshconfig: ~/.ssh/config
    getters:
        - vlans
        - interfaces
        - ntp

Inputs

    
host:
    description:
    - Set to {{ inventory_hostname }} or {{ ansible_host }}
    required: true
    type: str

port:
    default: 22
    description:
    - SSH connection port
    required: false
    type: int

getters:
    default:
    - vlans
    description:
    - List of the getters to retrieve
    required: false
    type: list

password:
    description:
    - Login password
    required: true
    type: str

username:
    description:
    - Login username
    required: true
    type: str

sshconfig:
    default: None
    description:
    - Path to sshconfig to use for connections
    required: false
    type: str

Outputs

msg:
  description: Message
  returned: On exit and on fail
  type: string
output:
  description: Dictionary of lists returned by the commands
  returned: On exit
  type: dict