Skip to content

Ascender-EE cannot find PyYaml after 1/26 update - Breaks our dynamic inventory scripts #227

@brittyazel

Description

@brittyazel

Please confirm the following

  • I have checked the current issues for duplicates.
  • I understand that Ascender is open source software provided for free and that I might not receive a timely response.

Bug Summary

Starting 1/26/2026 all of our Ascender automations and workflows are failing due to our inventory scripts no longer being able to execute. Whereas before our script would run and source our inventory dynamically from yaml files, now we get an error stating that python module yaml cannot be found. I believe PyYaml needs to be a part of the Ascender-EE for this to work, and I think you all updated Ascender-EE recently in a way that removed this necessary python dependency. Likewise, on ghcr I cannot find any tagged earlier releases for Ascender-EE rather than :latest, so I can't revert back to a prior version.

Can you please help me fix this, it's very urgent.

This is our inventory script:
dynamic_inventory.py

(Also, I would have filed the issue against Ascender-EE directly, but it appears like issues are turned off there.)

ansible-inventory [core 2.16.16]
  config file = /runner/project/ansible.cfg
  configured module search path = ['/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.11/site-packages/ansible
  ansible collection location = /runner/requirements_collections:/runner/.ansible/collections:/usr/share/ansible/collections:/usr/share/automation-controller/collections
  executable location = /usr/local/bin/ansible-inventory
  python version = 3.11.13 (main, Jan 16 2026, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-11)] (/usr/bin/python3.11)
  jinja version = 3.1.6
  libyaml = True
Using /runner/project/ansible.cfg as config file
host_list declined parsing /runner/project/inventory/dynamic_inventory.py as it did not pass its verify_file() method
auto declined parsing /runner/project/inventory/dynamic_inventory.py as it did not pass its verify_file() method
yaml declined parsing /runner/project/inventory/dynamic_inventory.py as it did not pass its verify_file() method
toml declined parsing /runner/project/inventory/dynamic_inventory.py as it did not pass its verify_file() method
[WARNING]:  * Failed to parse /runner/project/inventory/dynamic_inventory.py
with script plugin: Inventory script
(/runner/project/inventory/dynamic_inventory.py) had an execution error:
Traceback (most recent call last):   File
"/runner/project/inventory/dynamic_inventory.py", line 21, in <module>
import yaml ModuleNotFoundError: No module named 'yaml'
  File "/usr/local/lib/python3.11/site-packages/ansible/inventory/manager.py", line 293, in parse_source
    plugin.parse(self._inventory, self._loader, source, cache=cache)
  File "/usr/local/lib/python3.11/site-packages/ansible/plugins/inventory/script.py", line 152, in parse
    raise AnsibleParserError(to_native(e))

Ascender version

25.3.2

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

Ascender Installation Sctipt

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

Try to import your inventory, and watch it fail.

Expected results

Inventory should import cleanly like it has for months.

Actual results

Inventory import fails.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions