malformed output when we have variables in the command line-cisco ASA device

13 views
Skip to first unread message

Sahar

unread,
Jan 25, 2019, 3:16:32 PM1/25/19
to Ansible Project
I'm running the following commands, the output is malformed, May I know how I can fix it?



  - name: Checking DNS Parameters
    asa_command:
      commands:
      - 'show run policy-map type inspect dns "{{ policy_map }}" | i maximum'
    register: output


  - name: show DNS Parameters
    debug: var=output.stdout_lines






TASK [show DNS Parameters] *********************************************************************************************************
ok: [Fw4Script] => {
    "output.stdout_lines": [
        [
            "show run policy-map type inspect dns \"preset_spect dns \"preset_d                         s_map\" show run policy-map type inspect dns \"preset$", 
            "!", 
            "policy-map type inspect dns preset_dns_map", 
            " parameters", 
            "  message-length maximum client auto", 
            "  message-length maximum 1024", 
            "!"
        ]
    ]
Reply all
Reply to author
Forward
0 new messages