gmoisio.ale.ale_aos_config (1.3.0) — module

Send config commands to an ALE OmniSwitch device.

| "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

Connect to an OmniSwitch device and send configurations commands. It can take commands from a file or a commands list.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- gmoisio.ale.ale_aos_config: 
    host: "{{ ansible_host }}"
    username: admin
    password: switch
    sshconfig: ~/.ssh/config
    commands:
      - vlan 100 enable name test1
      - vlan 200 enable name test2
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- gmoisio.ale.ale_aos_config: 
    host: "{{ ansible_host }}"
    username: admin
    password: switch
    file: commands.txt

Inputs

    
file:
    default: ''
    description:
    - Path to the text file with one config command per line
    required: false
    type: str

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

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

save:
    default: false
    description:
    - Boolean to save and synchronize memories after changes success
    required: false
    type: bool

backup:
    default: false
    description:
    - Boolean to backup configuration in backups/file before changes
    required: false
    type: bool

commands:
    default: []
    description:
    - List of the config commands to run
    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: Error message
  returned: On fail
  type: string
output:
  description: Output returned from the commands
  returned: On exit
  type: string