# Help creating an ansible playbook

**URL:** <https://forum.ansible.com/t/help-creating-an-ansible-playbook/14963>\
**Category:** Ansible Project\
**Created:** [April 7, 2014, 8:10pm UTC](https://forum.ansible.com/t/help-creating-an-ansible-playbook/14963 "2014-04-07T20:10:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_thornton](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@andrew\_thornton](https://forum.ansible.com/u/andrew_thornton)\
**Post date:** [April 7, 2014, 8:10pm UTC](https://forum.ansible.com/t/help-creating-an-ansible-playbook/14963/1 "2014-04-07T20:10:32Z")

</div>

Hello everyone,

I am new to ansible but I am really enjoying it. I am trying to create a playbook to spin up new droplets (servers) at DigitalOcean. I have the following playbook put together and I need a little help.

My first task “Create new staging droplets” works very well, but I need to create a DNS record for each server that is created and I am not sure how to go about this. I am starting to think that using a “with\_items” dictionary isn’t the best way to go about this. In the end, I just need to make a call with the digital\_ocean\_domain module for each server with its newly assigned IP address.

Can someone help steer me in the right direction?
