Why Am I Getting An Error "internal error: Huge input lookup, line NNNNNN" When Using A `junos_config` Module To Backup The Config File?

Solution Verified - Updated -

Issue

When running this playbook to the target which has a very huge config file, it causes an error.

- hosts: foo
  gather_facts: false

  vars:
    ansible_network_os: junos
    ansible_connection: netconf
    ansible_command_timeout: 1800

  tasks:

  - name: Config Backup
    junos_config:
      backup: yes
      backup_options:
        filename: "{{ inventory_hostname }}.cfg"
        dir_path: /somewhere

Environment

Ansible Tower
Network modules using netconf plugin

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content