aruba / aoscx-ansible-role

Ansible roles for AOS-CX switches
22 stars 9 forks source link

aoscx_backup_config: backing up cli config doesn't work #19

Open cs-1 opened 2 years ago

cs-1 commented 2 years ago

We use the following tasks to back up switch configurations for Aruba CX switches:

- name: Fetch JSON backup from switch
  arubanetworks.aoscx.aoscx_backup_config:
    config_name: running-config
    output_file: "{{ inventory_hostname }}.json"
    config_type: json

- name: Fetch CLI backup from switch
  arubanetworks.aoscx.aoscx_backup_config:
    config_name: running-config
    output_file: "{{ inventory_hostname }}.cli"
    config_type: cli

While the first task works as expected, the second task only produces the JSON version of the config, not the cli version. Is this a bug? According to the docs, this should work.