zport module is not part of a collection and results in a ansible-lint syntax-check error. #215
Open
Description
The IMS team is using an ansible module not part of a collection, its being created locally.
This module is zport
That results in "couldn't resolve module/action 'zport'." ,
Things I tried to fix this:
- Add the module to ANSIBLE_COLLECTIONS_PATHS or ANSIBLE_COLLECTIONS_PATH here ansible.cfg.
- Tried to add to requiements.yaml to inform ansible where to find the module. I don’t know what FQCN to use either given its not coming from a collection.
# noqa: syntax-check[specific]
but I found it to be unskipable and also noted here
- name: Allocate HTTP Port
zport: # noqa: syntax-check[specific]
name: '*'
port: '{{ zcon_http_port if RESERVE_SPECIFIC_PORT else None | default(omit) }}'
dsname: '{{ tcpip_profile }}'
tmp_dsname: '{{ tcpip_profile_tmp }}'
tcp: true
register: command_result2
Work around:
Metadata
Assignees
Labels
No labels