# Register command with CloudStack modules

**URL:** <https://forum.ansible.com/t/register-command-with-cloudstack-modules/24665>\
**Category:** Ansible Project\
**Created:** [June 7, 2017, 3:18am UTC](https://forum.ansible.com/t/register-command-with-cloudstack-modules/24665 "2017-06-07T03:18:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Rose](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@David\_Rose](https://forum.ansible.com/u/David_Rose)\
**Post date:** [June 7, 2017, 3:18am UTC](https://forum.ansible.com/t/register-command-with-cloudstack-modules/24665/1 "2017-06-07T03:18:02Z")

</div>

Hello all!  
Can somone explain to me how ‘register’ works? I can not seem to use it with cs\_firewall module. I’m trying to understand how to register to a variable the details of a VM that has been instantiated by using the CloudStack module cs\_firewall.

Should Register be used as part of the cs\_instance module, or does it come separately?

Thanks in advance for any help or direction you may provide!  
-dave

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 13, 2017, 3:20pm UTC](https://forum.ansible.com/t/register-command-with-cloudstack-modules/24665/2 "2017-06-13T15:20:16Z")

</div>

register is an Ansible keyword, independent of modules, it is just a  
way for you to assign the 'return data' from a module to a variable  
that you can use later on.

To have a variable contain the data for a vm you would normally use it  
with the module that creates the vm or one that gathers facts about  
vms.

I hope this helps,
