I’ve written a script to help push passive checks: GitHub - jamespo/passinga: Push Icinga2 passive check results
It also parses the output of ansible playbooks and pushes the results. The docs have a basic explanation of how to configure passive checks as well.
Requirements: python 3.6+, urllib3