cisco asa backups playbook fails

Hello All!

I have been tasked with backing up our network devices. I am not a network guy but I know ansible and linux. I keep getting this error and have not found much on the web for help. The error is “unable to disable terminal pager.”

PLAY [Backup ASA Configuration] ***********************************************************************************************************************************
Found a vault_id (default) in the vaulttext
We have a secret associated with vault id (default), will try to use to decrypt /etc/ansible/group_vars/asa/vault.yml
Trying to use vault secret=(FileVaultSecret(filename=‘/etc/ansible/group_vars/.vltfile.yml’)) id=default to decrypt /etc/ansible/group_vars/asa/vault.yml
Trying secret FileVaultSecret(filename=‘/etc/ansible/group_vars/.vltfile.yml’) for vault_id=default
Decrypt of “b’/etc/ansible/group_vars/asa/vault.yml’” successful with secret=FileVaultSecret(filename=‘/etc/ansible/group_vars/.vltfile.yml’) and vault_id=default
Read vars_file ‘/etc/ansible/group_vars/asa/vault.yml’
META: ran handlers
Found a vault_id (default) in the vaulttext
We have a secret associated with vault id (default), will try to use to decrypt /etc/ansible/group_vars/asa/vault.yml
Trying to use vault secret=(FileVaultSecret(filename=‘/etc/ansible/group_vars/.vltfile.yml’)) id=default to decrypt /etc/ansible/group_vars/asa/vault.yml
Trying secret FileVaultSecret(filename=‘/etc/ansible/group_vars/.vltfile.yml’) for vault_id=default
Decrypt of “b’/etc/ansible/group_vars/asa/vault.yml’” successful with secret=FileVaultSecret(filename=‘/etc/ansible/group_vars/.vltfile.yml’) and vault_id=default
Read vars_file ‘/etc/ansible/group_vars/asa/vault.yml’
redirecting (type: action) cisco.asa.asa_config to cisco.asa.asa
Loading collection ansible.netcommon from /root/.ansible/collections/ansible_collections/ansible/netcommon

TASK [Backup ASA Configuration] ***********************************************************************************************************************************
task path: /etc/ansible/playbooks/networking/zzasap01.yml:15
redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli
Loading collection ansible.utils from /root/.ansible/collections/ansible_collections/ansible/utils
redirecting (type: terminal) ansible.builtin.asa to cisco.asa.asa
redirecting (type: cliconf) ansible.builtin.asa to cisco.asa.asa
attempting to start connection
using connection plugin ansible.netcommon.network_cli
Found ansible-connection at path /usr/bin/ansible-connection
local domain socket does not exist, starting it
control socket path is /root/.ansible/pc/4e7f6e3bdf
redirecting (type: connection) ansible.builtin.network_cli to ansible.netcommon.network_cli
Loading collection ansible.netcommon from /root/.ansible/collections/ansible_collections/ansible/netcommon
Loading collection ansible.utils from /root/.ansible/collections/ansible_collections/ansible/utils
redirecting (type: terminal) ansible.builtin.asa to cisco.asa.asa
Loading collection cisco.asa from /root/.ansible/collections/ansible_collections/cisco/asa
redirecting (type: cliconf) ansible.builtin.asa to cisco.asa.asa
local domain socket listeners started successfully
loaded cliconf plugin ansible_collections.cisco.asa.plugins.cliconf.asa from path /root/.ansible/collections/ansible_collections/cisco/asa/plugins/cliconf/asa.py for network_os asa
ssh type is set to libssh

local domain socket path is /root/.ansible/pc/4e7f6e3bdf
redirecting (type: action) cisco.asa.asa_config to cisco.asa.asa
redirecting (type: action) cisco.asa.asa_config to cisco.asa.asa
ANSIBLE_NETWORK_IMPORT_MODULES: enabled
ANSIBLE_NETWORK_IMPORT_MODULES: found cisco.asa.asa_config at /root/.ansible/collections/ansible_collections/cisco/asa/plugins/modules/asa_config.py
ANSIBLE_NETWORK_IMPORT_MODULES: running cisco.asa.asa_config
ANSIBLE_NETWORK_IMPORT_MODULES: complete
ANSIBLE_NETWORK_IMPORT_MODULES: Result: {‘failed’: True, ‘_ansible_parsed’: False, ‘module_stdout’: ‘’, ‘module_stderr’: ‘unable to disable terminal pager’, ‘msg’: ‘MODULE FAILURE\nSee stdout/stderr for the exact error’}
fatal: [zzaxxxxx]: FAILED! => {
“changed”: false,
“module_stderr”: “unable to disable terminal pager”,
“module_stdout”: “”,
“msg”: “MODULE FAILURE\nSee stdout/stderr for the exact error”
}

I ran some more tests and it does not matter what command I send or directive aka backup: yes I see the same error on all 3 unique devices. An cisco-asa a dellos9 cmc device and a cisco nxos switch.
module_stderr": “unable to set terminal parameters”,

I was able to get past this error by setting ansible_network_terminal_errors=ignore in my hosts file
By default its set to fatal.

[ASA:vars]
ansible_network_terminal_errors=ignore