cisco.asa
cisco.asa copied to clipboard
Not able to gather ogs
SUMMARY
When trying to run cisco.asa.asa_ogs, I constantly get the following error, msg: 'argument start is of type <type ''str''> found in ''config -> object_groups -> services_object -> destination_port -> range''. and we were unable to convert to int: <type ''str''> cannot be converted to an int'
ISSUE TYPE
- Bug Report
COMPONENT NAME
ANSIBLE VERSION
config file = /etc/ansible/ansible.cfg
configured module search path = ['/Users/jholbert/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.8.12 (default, Oct 13 2021, 06:42:19) [Clang 12.0.0 (clang-1200.0.32.29)]
COLLECTION VERSION
not able to retrieve
CONFIGURATION
DEFAULT_LOAD_CALLBACK_PLUGINS(/private/etc/ansible/ansible.cfg) = True
DEFAULT_STDOUT_CALLBACK(/private/etc/ansible/ansible.cfg) = yaml
DEPRECATION_WARNINGS(/private/etc/ansible/ansible.cfg) = True
HOST_KEY_CHECKING(/private/etc/ansible/ansible.cfg) = False
PERSISTENT_COMMAND_TIMEOUT(/private/etc/ansible/ansible.cfg) = 120
PERSISTENT_CONNECT_TIMEOUT(/private/etc/ansible/ansible.cfg) = 60
RETRY_FILES_ENABLED(/private/etc/ansible/ansible.cfg) = False
OS / ENVIRONMENT
Cisco Adaptive Security Appliance Software Version 9.16(1)28
STEPS TO REPRODUCE
Running the below playbook always fails with the error message above
---
- hosts: asa_staging
gather_facts: false
connection: network_cli
become: yes
become_method: enable
tasks:
- name: Gather listed OGs with provided configurations
cisco.asa.asa_ogs:
config:
state: gathered
EXPECTED RESULTS
Gathered results
ACTUAL RESULTS
fatal: [aws-stg-asa01]: FAILED! => changed=false
ansible_facts:
discovered_interpreter_python: /usr/bin/python
msg: 'argument start is of type <type ''str''> found in ''config -> object_groups -> services_object -> destination_port -> range''. and we were unable to convert to int: <type ''str''> cannot be converted to an int'