# using rax\_cbs to test a volume

**URL:** <https://forum.ansible.com/t/using-rax-cbs-to-test-a-volume/24645>\
**Category:** Ansible Project\
**Created:** [June 5, 2017, 12:46pm UTC](https://forum.ansible.com/t/using-rax-cbs-to-test-a-volume/24645 "2017-06-05T12:46:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ed\_Greenberg](https://avatars.discourse-cdn.com/v4/letter/e/7ab992/32.png) [@Ed\_Greenberg](https://forum.ansible.com/u/Ed_Greenberg)\
**Post date:** [June 5, 2017, 12:46pm UTC](https://forum.ansible.com/t/using-rax-cbs-to-test-a-volume/24645/1 "2017-06-05T12:46:11Z")

</div>

Hi, Folks,

I’d like to be able to test for a volume by name before trying to create it. If the name exists, the playbook needs to fail, so that it can be called with a new name.

Nothing was obvious in the documentation for rax\_cbs.

Anything I try seems to create a volume. I left out state= and still got a new volume.

Any way to do what I need?

Thanks,

Ed
