On Mon, 19 Sep 2022 at 18:25, Robert Kruck <rkr...@gmail.com> wrote: > 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.openstackexpand_hostvars: yesfail_on_errors: > yesall_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.ymlwith 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.ymlwith auto > plugin: openstacksdk is required for the OpenStack inventory plugin.* >
This is a problem. Install that sdk and see if that fixes things > > > > > > > > > > > > > > > > > > > > *OpenStack inventory sources will be skipped.[WARNING]: * Failed to parse > /home/rkruck/repos/my-stuff/ansible/openstack.ymlwith yaml plugin: Plugin > configuration YAML file, not YAML inventory[WARNING]: * Failed to parse > /home/rkruck/repos/my-stuff/ansible/openstack.ymlwith ini plugin: Invalid > host pattern 'plugin:' supplied, ending in ':' is notallowed, this > character is reserved to provide a port.[WARNING]: Unable to parse > /home/rkruck/repos/my-stuff/ansible/openstack.yml asan 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 > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to ansible-project+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/75a1d547-9fe3-4464-bbb4-06acd4eb62b2n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/75a1d547-9fe3-4464-bbb4-06acd4eb62b2n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Sent from Gmail Mobile -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAF8BbLb_6CJS9NCKVhKnKHQ-O3CuMra1VZyni7AtxXNueTNU0g%40mail.gmail.com.