arubanetworks.aoscx.aoscx_upload_config (4.3.2) — module

Uploads a configuration onto the AOS-CX switch.

| "added in version" 2.8.0 of arubanetworks.aoscx"

Authors: Aruba Networks (@ArubaNetworks)

preview | supported by certified

Install collection

Install with ansible-galaxy collection install arubanetworks.aoscx:==4.3.2


Add to requirements.yml

  collections:
    - name: arubanetworks.aoscx
      version: 4.3.2

Description

This module uploads a configuration onto the switch stored locally or it can also upload the configuration from a TFTP server.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Copy Running Config from local JSON file as JSON
  aoscx_upload_config:
    config_name: 'running-config'
    config_file: '/user/admin/running.json'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Copy Running Config from TFTP server as JSON
  aoscx_upload_config:
    config_name: 'running-config'
    remote_config_file_tftp_path: 'tftp://192.168.1.2/running.json'
    vrf: 'mgmt'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Copy CLI from TFTP Server to Running Config
  aoscx_upload_config:
    config_name: 'running-config'
    remote_config_file_tftp_path: 'tftp://192.168.1.2/running.cli'
    vrf: 'mgmt'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Copy CLI from TFTP Server to Startup Config
  aoscx_upload_config:
    config_name: 'startup-config'
    remote_config_file_tftp_path: 'tftp://192.168.1.2/startup.cli'
    vrf: 'mgmt'

Inputs

    
vrf:
    description: 'VRF to be used to contact TFTP server, required if remote_output_file_tftp_path
      is provided.

      '
    required: false
    type: str

config_file:
    description: 'File name and path for locally uploading configuration, only JSON version
      of configuration can be uploaded.

      '
    required: false
    type: str

config_json:
    description: 'JSON file name and path for locally uploading configuration, only JSON
      version of configuration can be uploaded.

      '
    required: false
    type: str

config_name:
    default: running-config
    description: 'Switch config file to be uploaded to, only running-config or startup-config
      can be used

      '
    required: false
    type: str

remote_config_file_tftp_path:
    description: 'TFTP server address and path for uploading configuration, can be JSON
      or CLI format, must be reachable through provided vrf.

      '
    required: false
    type: str