arubanetworks / arubanetworks.aoscx / 4.3.2 / module / aoscx_upload_config Uploads a configuration onto the AOS-CX switch. | "added in version" 2.8.0 of arubanetworks.aoscx" Authors: Aruba Networks (@ArubaNetworks) preview | supported by certifiedarubanetworks.aoscx.aoscx_upload_config (4.3.2) — module
Install with ansible-galaxy collection install arubanetworks.aoscx:==4.3.2
collections: - name: arubanetworks.aoscx version: 4.3.2
This module uploads a configuration onto the switch stored locally or it can also upload the configuration from a TFTP server.
- name: Copy Running Config from local JSON file as JSON aoscx_upload_config: config_name: 'running-config' config_file: '/user/admin/running.json'
- 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'
- 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'
- 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'
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