The plugin found here (https://docs.ansible.com/ansible/latest/collections/community/general/nmap_inventory.html) states "To use it in a playbook, specify: community.general.nmap
".
I have not seen how this could be accomplished. I have the it working as a general inventory plugin, but I am curious if it can actually be triggered in a playbook task. For reference I did try this:
- name: Test Inventory
community.general.nmap:
address: 192.168.0.0/24
But that just says that the module does not exist. So can it actually be run in a playbook, or is this an errant remark? If it can, could I have an example, please?
I am running ansible [core 2.13.3]
and version 6.4.0
of community.general.nmap
.
Looking at the source, we can see that there is no nmap
module in the plugins/modules
directory (nor is it a lookup plugin
).
It looks like that is simply erroneous documentation.