Silly (?) inventory problem

205 views
Skip to first unread message

Norbert Klamann

unread,
Jan 18, 2023, 8:05:18 AM1/18/23
to Ansible Project
Hello all,
i want to use the ' community.general.proxmox' inventory.

I call its in this way and get some errors which I do not understand:

```
nsible-inventory -i inventory/local.proxmox.yaml  --list
/home/norbert/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host '10.10.1.11'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
  warnings.warn(
[WARNING]:  * Failed to parse /mnt/i/ansible/play/inventory/local.proxmox.yaml with auto plugin: 'NoneType' object is not subscriptable
[WARNING]:  * Failed to parse /mnt/i/ansible/play/inventory/local.proxmox.yaml with yaml plugin: Plugin configuration YAML file, not YAML inventory
[WARNING]:  * Failed to parse /mnt/i/ansible/play/inventory/local.proxmox.yaml 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 /mnt/i/ansible/play/inventory/local.proxmox.yaml as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
{
    "_meta": {
        "hostvars": {}
    },
    "all": {
        "children": [
            "ungrouped"
        ]
    }
}
```

The file looks like this:
```
plugin: community.general.proxmox
url: "https://10.10.1.11:8006"
user: "Ansible@pam"
password: Ansible
validate_certs: false
```

What am I doin wrong here ?

Thanks a lot


Norbert

Brian Coca

unread,
Jan 24, 2023, 10:50:24 AM1/24/23
to ansible...@googlegroups.com
Use -vvv, to get the full error, the 'auto' plugin normally loads
whatever is defined in the 'plugin' field in the config, but its
showing:

> Failed to parse /mnt/i/ansible/play/inventory/local.proxmox.yaml with auto plugin: 'NoneType' object is not subscriptable


--
----------
Brian Coca

Norbert Klamann

unread,
Jan 25, 2023, 7:43:50 AM1/25/23
to Ansible Project
Problem was that the combination user, token-id, token_secret was invalid.
Reply all
Reply to author
Forward
0 new messages