We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello. Sorry for my bad English
Run docker-compose-mac.yml
Created a project
rulebooks/nothing.yml:
--- - name: Nothing hosts: all sources: - ansible.eda.range: limit: 5 rules: - name: Nothing condition: event.i == 1 action: run_playbook: name: playbooks/nothing.yml copy_files: true
playbooks/nothing.yml:
--- - name: Nothing hosts: localhost tasks: - name: Nothing meta: noop
inventory/hosts.yml:
--- all: hosts: localhost: ansible_connection: local
2025-01-24 07:54:10,770 Pulling image quay.io/ansible/ansible-rulebook 2025-01-24 07:54:13,414 Starting Container 2025-01-24 07:54:13,417 Container args ['ansible-rulebook', '--worker', '--websocket-ssl-verify', 'no', '--websocket-url', 'ws://host.containers.internal:8001/api/eda/ws/ansible-rulebook', '--websocket-access-token', '******', '--websocket-refresh-token', '******', '--websocket-token-url', 'http://host.containers.internal:8001/api/eda/v1/auth/token/refresh/', '--id', '24', '--heartbeat', '300'] 2025-01-24 07:54:13,550 Container 72b899197ed68d20508a450be796bf4471d85b912c2b2b33f07ede2e3df5f0db is running. 2025-01-24 07:54:14,574 - ansible_rulebook.cli - ERROR - Terminating Rule Nothing has an action run_playbook which needs inventory to be defined
How to use run_playbook?
No response
The text was updated successfully, but these errors were encountered:
@gurv run-playbook can only be used when using ansible-rulebook CLI it can't be used when run as an Activation from eda-server. When run from eda-server we only support run_job_template so you would need a different rulebook. e.g. https://github.com/ansible/event-driven-ansible/blob/main/extensions/eda/rulebooks/demo_controller_rulebook.yml
Sorry, something went wrong.
@mkanoor thanks, good luck to this project
No branches or pull requests
Please confirm the following
Bug Summary
Hello. Sorry for my bad English
Run docker-compose-mac.yml
Created a project
rulebooks/nothing.yml:
playbooks/nothing.yml:
inventory/hosts.yml:
How to use run_playbook?
Environment
Steps to reproduce
Actual results
Expected results
Additional information
No response
The text was updated successfully, but these errors were encountered: