# OpenStack - Try to  add new hosts in a dynamic inventory file

**URL:** <https://forum.ansible.com/t/openstack-try-to-add-new-hosts-in-a-dynamic-inventory-file/24192>\
**Category:** Ansible Project\
**Created:** [April 11, 2017, 3:22pm UTC](https://forum.ansible.com/t/openstack-try-to-add-new-hosts-in-a-dynamic-inventory-file/24192 "2017-04-11T15:22:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soufiane\_Benmalek](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@Soufiane\_Benmalek](https://forum.ansible.com/u/Soufiane_Benmalek)\
**Post date:** [April 11, 2017, 3:22pm UTC](https://forum.ansible.com/t/openstack-try-to-add-new-hosts-in-a-dynamic-inventory-file/24192/1 "2017-04-11T15:22:13Z")

</div>

Hi,

I use Ansible to launch new servers on an OpenStack public cloud provider.  
This is my playbook:

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [April 18, 2017, 3:58pm UTC](https://forum.ansible.com/t/openstack-try-to-add-new-hosts-in-a-dynamic-inventory-file/24192/2 "2017-04-18T15:58:04Z")

</div>

The reason is in the error message "The error was: 'mariadbservers' is undefined"

Your group: should not be a variable, but name of the group that you would like to add the host in.
