shyam@DESKTOP-OO7EVK2:~/ansible-project$ **ansible-inventory --list**
[WARNING]: Collection azure.azcollection does not support Ansible version 2.15.13
[WARNING]: * Failed to parse /home/shyam/ansible-project/azure_rm.yml with
ansible_collections.azure.azcollection.plugins.inventory.azure_rm plugin: name 'azure_cloud' is not defined
[WARNING]: * Failed to parse /home/shyam/ansible-project/azure_rm.yml with auto plugin: name 'azure_cloud' is not defined
[WARNING]: * Failed to parse /home/shyam/ansible-project/azure_rm.yml with yaml plugin: Plugin configuration YAML file, not YAML inventory
[WARNING]: * Failed to parse /home/shyam/ansible-project/azure_rm.yml with ini plugin: Invalid host pattern 'plugin:' supplied, ending in
':' is not allowed, this character is reserved to provide a port.
[WARNING]: Unable to parse /home/shyam/ansible-project/azure_rm.yml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
{
"_meta": {
"hostvars": {}
},
"all": {
"children": [
"ungrouped"
]
}
}
here is my inventary plugin file:
plugin: azure.azcollection.azure_rm
include_vm_resource_groups:
- NextOpsRG03
auth_source: auto
keyed_groups:
- prefix: tag
key: tags
hostnames:
- public_ip_address
I set up all env varibales but still failing with above error