event-driven-ansible: The default installation is not providing the ansible.eda.journald module
I ran I default installation exactly is described in the Getting Started section, like this:
$ ansible-galaxy collection install ansible.eda
$ ansible-playbook -i localhost, -c local ansible.eda.install_rulebook_cli
But when I try to run a rulebook using the ansible.eda.journald module, as this example, I get the following error message:
2023-03-03 18:11:53,175 - ansible_rulebook.engine - ERROR - Source error
Traceback (most recent call last):
File "/home/localuser/.local/lib/python3.10/site-packages/ansible_rulebook/engine.py", line 101, in start_source
raise Exception(
Exception: Could not find source plugin for ansible.eda.journald
2023-03-03 18:11:53,187 - ansible_rulebook.app - ERROR - Could not find source plugin for ansible.eda.journald
2023-03-03 18:11:53,187 - ansible_rulebook.cli - ERROR - Unexpected exception
Traceback (most recent call last):
File "/home/localuser/.local/lib/python3.10/site-packages/ansible_rulebook/cli.py", line 203, in main
asyncio.run(app.run(args))
File "/usr/lib64/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib64/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/localuser/.local/lib/python3.10/site-packages/ansible_rulebook/app.py", line 116, in run
raise Exception("One of the source plugins failed")
Exception: One of the source plugins failed
I saw no python file related to this module in the following directory:
$ ls ~/.ansible/collections/ansible_collections/ansible/eda/plugins/event_source/
alertmanager.py file.py kafka.py range_output_schema.json README.md url_check.py
azure_service_bus.py file_watch.py range_input_schema.json range.py tick.py webhook.py
But it should exist there, since it exists in the main branch, here.
So why it’s not being installed by default?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (13 by maintainers)
@konstruktoid, thank you so much. Apparently it’s working now after your fix. I’ll need to do some more tests now:
@konstruktoid my mistake, I was trying to install
systemdnotsystemd-python. It works fine with the latter.