Using Ansible Playbook for Implementing Inventory Plugin?

Hello,

is it possible to use an Ansible playbook for implementing a custom inventory plugin?

Currently, I am using following approach with manual steps:

  • create inventory file by running an ad-hoc command or playbook against a source-of-truth server
  • The actual playbook then uses the manually created inventory

BR,
Roland