Dynamic Inventories with Openstack

Hello everyone,
I am working on moving our playbooks from ansible 2.9 to 2.12+ and am having trouble understanding how to use plugin: openstack.cloud.openstack. I am sure it is something simple I am missing or using this wrong so hoping someone can point me in the right direction.

I have an openstack.yml file:
plugin: openstack.cloud.openstack
expand_hostvars: yes
fail_on_errors: yes
all_projects: yes

I run the command:
ansible-inventory -i openstack.yml --list

and get the following error:
[WARNING]: * Failed to parse /home/rkruck/repos/my-stuff/ansible/openstack.yml
with script plugin: problem running /home/rkruck/repos/my-
stuff/ansible/openstack.yml --list ([Errno 8] Exec format error:
‘/home/rkruck/repos/my-stuff/ansible/openstack.yml’)
[WARNING]: * Failed to parse /home/rkruck/repos/my-stuff/ansible/openstack.yml
with auto plugin: openstacksdk is required for the OpenStack inventory plugin.
OpenStack inventory sources will be skipped.
[WARNING]: * Failed to parse /home/rkruck/repos/my-stuff/ansible/openstack.yml
with yaml plugin: Plugin configuration YAML file, not YAML inventory
[WARNING]: * Failed to parse /home/rkruck/repos/my-stuff/ansible/openstack.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/rkruck/repos/my-stuff/ansible/openstack.yml as
an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
{
“_meta”: {
“hostvars”: {}
},
“all”: {
“children”: [
“ungrouped”
]
}
}

I’m sure I am not understanding the proper use of how to use the plugin which is why I’m coming to you experts for help :).

v/r
Robert

Hello everyone,
I am working on moving our playbooks from ansible 2.9 to 2.12+ and am having trouble understanding how to use plugin: openstack.cloud.openstack. I am sure it is something simple I am missing or using this wrong so hoping someone can point me in the right direction.

I have an openstack.yml file:
plugin: openstack.cloud.openstack
expand_hostvars: yes
fail_on_errors: yes
all_projects: yes

I run the command:
ansible-inventory -i openstack.yml --list

and get the following error:
[WARNING]: * Failed to parse /home/rkruck/repos/my-stuff/ansible/openstack.yml
with script plugin: problem running /home/rkruck/repos/my-
stuff/ansible/openstack.yml --list ([Errno 8] Exec format error:
‘/home/rkruck/repos/my-stuff/ansible/openstack.yml’)
[WARNING]: * Failed to parse /home/rkruck/repos/my-stuff/ansible/openstack.yml
with auto plugin: openstacksdk is required for the OpenStack inventory plugin.

This is a problem. Install that sdk and see if that fixes things