# How to execute nifi-toolkit cli commands using ansible

**URL:** <https://forum.ansible.com/t/how-to-execute-nifi-toolkit-cli-commands-using-ansible/35601>\
**Category:** Ansible Project\
**Created:** [August 9, 2021, 10:03am UTC](https://forum.ansible.com/t/how-to-execute-nifi-toolkit-cli-commands-using-ansible/35601 "2021-08-09T10:03:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shweta\_julur](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@shweta\_julur](https://forum.ansible.com/u/shweta_julur)\
**Post date:** [August 9, 2021, 10:03am UTC](https://forum.ansible.com/t/how-to-execute-nifi-toolkit-cli-commands-using-ansible/35601/1 "2021-08-09T10:03:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [August 9, 2021, 10:18am UTC](https://forum.ansible.com/t/how-to-execute-nifi-toolkit-cli-commands-using-ansible/35601/2 "2021-08-09T10:18:36Z")

</div>

Yes. I don't know what this nifi toolkit is, but based on  
[https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html](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](https://docs.ansible.com/ansible/latest/user_guide/index.html) first.

Dick
