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/154f32a4-7512-4619-bd81-dc4042e10081%40googlegroups.com.

Reply via email to