Installs the Hailo AI accelerator driver and runtime for Raspberry Pi AI HAT+ and AI HAT+ 2.
| Device | Variant | TOPS |
|---|---|---|
| AI HAT+ (Hailo-8L) | h8l |
13 |
| AI HAT+ (Hailo-8) | h8 |
26 |
| AI HAT+ 2 (Hailo-10H) | h10 |
40 |
- Raspberry Pi 5
- Debian Trixie (64-bit)
- AI HAT+ or AI HAT+ 2 physically installed
ansible-galaxy role install head1328.hailo- name: Setup Hailo AI accelerator
hosts: ai_nodes
become: true
roles:
- role: head1328.hailo
hailo_variant: h10| Variable | Default | Description |
|---|---|---|
hailo_variant |
h10 |
Device variant: h8l, h8, or h10 |
The role triggers a reboot when packages are installed. After reboot, verify:
ls /dev/hailo0
hailortcli fw-control identifySymlink the role into your local Ansible roles path for development without reinstalling:
make symlinkThis creates a symlink at ~/.ansible/roles/head1328.hailo
pointing to the working directory. Changes are immediately
available to playbooks.
Tests require a Raspberry Pi with the Hailo hardware and the Raspberry Pi apt repository configured. The target host is configured via environment variables:
| Variable | Default | Description |
|---|---|---|
MOLECULE_HOST |
(required) | SSH hostname of the test Pi |
MOLECULE_USER |
ansible |
SSH user on the test Pi |
Full test (installs packages, verifies installation):
MOLECULE_HOST=my-pi5 make testSimulate (dry-run all variants via check_mode, verifies package availability):
MOLECULE_HOST=my-pi5 make test-simulateAll scenarios:
MOLECULE_HOST=my-pi5 make test-allMOLECULE_HOST=my-pi5 make converge # Apply role
MOLECULE_HOST=my-pi5 make verify # Run verification
make lint # Run ansible-lintAGPL-3.0-or-later