-
Notifications
You must be signed in to change notification settings - Fork 90
Open
Description
Please confirm the following
- I agree to follow this project's code of conduct.
- I have checked the current issues for duplicates.
- I understand that ansible-rulebook is open source software provided for free and that I might not receive a timely response.
Bug Summary
I'm using Webhook event source to trigger ansible rulebook from the the command line using another locally installed service. The first time it triggers it almost always works but subsequent triggers I sometimes get an error (below)
Environment
1.0.3
Executable location = /usr/local/bin/ansible-rulebook
Drools_jpy version = 0.3.7
Java home = /usr/lib/jvm/java-17-openjdk-amd64
Java version = 17.0.8.1
Python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
Ubuntu 22.04.3 LTS on ESXi AMD64
Steps to reproduce
Using this rulebook:
---
- name: Run playbook
hosts: all
sources:
- ansible.eda.webhook:
host: 127.0.0.1
port: 6000
rules:
- name: Webhook called
condition: event.payload.cmd == 'start'
action:
run_playbook:
name: /home/charlespick/playbook.yml
Actual results
2023-10-29 18:46:29,916 - ansible_rulebook.rule_set_runner - ERROR - Error calling action run_playbook, err [('/home/charlespick/.ansible/cp/47aa5da64f', '/tmp/edach48wb7s/project/.ansible/cp/47aa5da64f', "[Errno 6] No such device or address: '/home/charlespick/.ansible/cp/47aa5da64f'")]
Expected results
Playbook should execute reliably
Additional information
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
