# Vultr CLI & Ansible - Filter server list

**URL:** <https://forum.ansible.com/t/vultr-cli-ansible-filter-server-list/39406>\
**Category:** Get Help\
**Created:** [December 31, 2024, 5:35pm UTC](https://forum.ansible.com/t/vultr-cli-ansible-filter-server-list/39406 "2024-12-31T17:35:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam1](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/adam1/32/7102_2.png) [@Adam1](https://forum.ansible.com/u/Adam1)\
**Post date:** [December 31, 2024, 5:35pm UTC](https://forum.ansible.com/t/vultr-cli-ansible-filter-server-list/39406/1 "2024-12-31T17:35:54Z")

</div>

Hello everyone,

I am having difficulty using the Vultr Plugin with Ansible to accomplish a specific task.  
Goal: I have a Vultr account and I have many servers there (VPS) I want to apply a specific Firewall group to a specific set of my Vultr servers. I need to use the Vultr Ansible plugin to:

1. Get a list of all servers in my account
2. Filter that list based on my Ansible HOST file list, or another list that I specify.
3. Apply a specific Vultr firewall group ID to that filtered list. I am having a complete brain block and cannot seem to figure it out.

I assume others have done something similar. Could anyone help me to get a working playbook for this? I cannot figure it out from the documentation.

Thanks in advance, I appreciate it!
