This isn't ios_config though. When i log into the device with the username
and password in the ansible script it works fine and the command takes. So
why is it failing?
On Thursday, November 7, 2019 at 5:48:59 PM UTC-6, Steven Williams wrote:
>
> Getting Error:
>
> PLAY [show Anyconnect VPN connections for ASA]
> *********************************************************************
>
>
> TASK [Set terminal page to zero]
> ***********************************************************************************
>
> fatal: [10.53.0.105]: FAILED! => changed=false
>
> ansible_facts:
>
> discovered_interpreter_python: /usr/bin/python
>
> msg: operation requires privilege escalation
>
>
> PLAY RECAP
> *********************************************************************************************************
>
> 10.53.0.105 : ok=0 changed=0 unreachable=0
> failed=1 skipped=0 rescued=0 ignored=0
>
>
> ---
>
>
> - *name*: show Anyconnect VPN connections for ASA
>
> *hosts*: CAO_ASA
>
> *gather_facts*: false
>
> *connection*: network_cli
>
> *become_method*: enable
>
> *become*: yes
>
>
> *vars*:
>
> *ansible_user*: AnsibleReadOnlyUser
>
> *ansible_ssh_pass*: 12345
>
> *ansible_become_pass*: 12345
>
> *ansible_network_os*: asa
>
> *ansible_become*: yes
>
> *tasks*:
>
> - *name*: Set terminal page to zero
>
> *asa_config*:
>
> *lines*:
>
> - terminal pager 0
>
>
>
>
> - *name*: Show version
>
> *asa_command*:
>
> *commands*:
>
> - show vpn-sessiondb anyconnect
>
>
>
> *register*: print_output
>
>
>
> # - debug: var=print_output.stdout_lines
>
>
> - *name*: copy output to file
>
> *copy*: content="{{print_output.stdout[0]}}"
> dest=./test-asa-results.txt
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/dd409ab4-a4a7-4fc1-9f46-2333f6be72be%40googlegroups.com.