How to execute nifi-toolkit cli commands using ansible

Hi,

I am trying to automate the deployment of flows in nifi UI, to do that I will be using nifi-toolkit cli commands. is there any way that I can execute these commands through ansible (.yml file).

Thanks

Shweta

Yes. I don't know what this nifi toolkit is, but based on
https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html it
seems to support JSON output, which is useful when setting up the
playbook logic (if needed). There may be existing ansible roles that
other people have contributed.
The way you phrase the question indicates you have not used ansible
before, so probably good to read
https://docs.ansible.com/ansible/latest/user_guide/index.html first.

Dick