Hi,


I installed pyats parser (got a minor error but installation was 
completed). Then i ran below 2 scripts but getting error.

1st script was run as per example in ansible documentation for 
ansible.netcommon.cli_parse. I have ansible 2.9 and when i select that 
version in above documentation, nothing is shown. So is this parser/module 
not supported in 2.9? Why is pyats parser not working?

SCRIPT 1:

  - name: Run command and parse with pyats

      ansible.netcommon.cli_parse:

        parser:

            name: ansible.netcommon.pyats

            os: ios

            command: "show flash:"

      register: parser_output

    - debug: var=parser_output.stdout_lines


root:~# ansible-playbook sample.yaml

ERROR! couldn't resolve module/action 'ansible.netcommon.cli_parse'. This 
often indicates a misspelling, missing collection, or incorrect module path.


The error appears to be in '/root/sample.yaml': line 18, column 7, but may

be elsewhere in the file depending on the exact syntax problem.


The offending line appears to be:

    - name: Run command and parse with pyats

      ^ here

----------------------------------------------------------------------------------------------

SCRIPT 2:

    - pyats_parse_command:

        command: show ip int br

      register: ospf_output

    - debug: var=ospf_output.stdout


root:~# ansible-playbook sample.yaml

ERROR! couldn't resolve module/action 'pyats_parse_command'. This often 
indicates a misspelling, missing collection, or incorrect module path.


The error appears to be in '/root/sample.yaml': line 17, column 7, but may

be elsewhere in the file depending on the exact syntax problem.


The offending line appears to be:

    - pyats_parse_command:

      ^ here

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5d991bde-b531-4b69-ac51-12d13fbb83f4n%40googlegroups.com.

Reply via email to