python-tripleoclient/tripleoclient/v2
Miguel Garcia 4d8fe985e0 parse_ansible_inventory: use ansible_runner instead of importing Ansible
All our interactions with Ansible are brokered by the ansible_runner
module, except for this one function which imports the Ansible module
proper. This leads for breakage when using the latest Ansible builds
from EL9, which are on python3.11 instead of 3.9.

By refactoring parse_ansible_inventory to use ansible_runner's
get_inventory we avoid that breakage, but we also lose out on the
pattern matching as that isn't supported. This function is called in two
places:

ceph_hosts_in_inventory: it didn't do any pattern matching at all, so it
isn't impacted by the change.

overcloud admin authorize: we can now offload the pattern matching to
Ansible itself via the limit_hosts parameter we pass to the playbook run
command, preserving the original functionality.

Closes-Bug: #2007659
Change-Id: I08330ced3b31d0ff48a881501cae8bd726e36432
2023-02-27 09:52:19 +01:00
..
__init__.py Prepare tripleoclient for v2 implementations of the commands 2020-01-27 13:18:52 +00:00
overcloud_ceph.py parse_ansible_inventory: use ansible_runner instead of importing Ansible 2023-02-27 09:52:19 +01:00
overcloud_delete.py Remove leftover of --heat-type installed 2022-10-19 16:59:23 +09:00
overcloud_network.py Dynamic defaults for roles, networks, vips and bm 2021-09-07 13:11:21 +02:00
overcloud_node.py Stop using heat-admin as ansible_ssh_user 2022-07-14 11:33:54 +00:00
overcloud_support.py Add stack_name support to ANSIBLE_INVENTORY 2020-04-29 17:29:33 -05:00
tripleo_container_image.py Remove ANSIBLE_STDOUT_CALLBACK override 2022-11-16 04:23:36 +00:00