Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for prompt in arubaoss_command #129

Open
EarlRamirez opened this issue Mar 26, 2021 · 1 comment
Open

Support for prompt in arubaoss_command #129

EarlRamirez opened this issue Mar 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@EarlRamirez
Copy link

Automating backup with ansible has been a bit challenging with the arubaoss_command module.

When using SCP to copy config and flash backup the controllers prompts for a password and without this option, the copy fails.

Below is a sample playbook to perform this task.

---
- name: Backup Aruba Configuration
  hosts: wlc
  gather_facts: false
  serial: 1

  tasks:
    - name: Create backup on controllers
      arubaoss_command:
        commands:
          - "backup {{ item }}"
      loop:
        - config
        - flash

    - name: Save backup configuration to disk
      arubaoss_command:
        commands:
          - "copy flash: {{ item.src_file }} scp: {{ item.src_addr }} {{ item.user }}  {{ inventory_hostname }}_{{ item.dst_file }}"
            prompt: "Password:"
            answer: "{{ backup_pass }}"
      loop: "{{ backup_vars }}"
@tchiapuziowong
Copy link
Member

Hello @EarlRamirez thank you for this we've been focusing development on our AOS-CX modules but I've added this as an enhancement!

@tchiapuziowong tchiapuziowong added the enhancement New feature or request label Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants