Hi Home Assistant community!
I wanted to share something I put together yesterday that bridges the gap between Ansible automation and Home Assistant: Ansible Playbook Monitor!
This integration allows you to monitor the state of your Ansible playbooks directly within Home Assistant. Whether you’re running infrastructure automation or managing configurations, you can now keep an eye on your playbooks without leaving your Home Assistant dashboard.
Key Features:
- Webhook Integration: Sends playbook statuses to Home Assistant using webhooks.
- Entity Creation: Publishes statuses as individual entities for easy tracking.
- Customizable Automation: Use the playbook states to trigger automations or notifications.
Use Cases:
- Get notified when a playbook starts, finishes, or encounters errors.
- Display real-time playbook statuses on your Lovelace dashboard.
- Automate recovery actions in Home Assistant if a playbook fails.
How It Works:
- Set up the webhook in Home Assistant to receive Ansible playbook events.
- Configure your playbooks to send updates to the webhook.
- Enjoy seamless updates in Home Assistant!
Requirements:
- Home Assistant 2023.5 or newer
- A working Ansible environment
- Access to your Home Assistant instance (either via HTTPS or HTTP)
Get Started:
Check out the GitHub repo for full documentation, setup instructions, and examples. It’s easy to get started, and contributions or feedback are always welcome!