# Generate resgiter from dict var

**URL:** <https://forum.ansible.com/t/generate-resgiter-from-dict-var/29629>\
**Category:** Ansible Project\
**Tags:** azure, aws\
**Created:** [February 6, 2019, 11:53am UTC](https://forum.ansible.com/t/generate-resgiter-from-dict-var/29629 "2019-02-06T11:53:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Tomelin](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Post date:** [February 6, 2019, 11:53am UTC](https://forum.ansible.com/t/generate-resgiter-from-dict-var/29629/1 "2019-02-06T11:53:58Z")

</div>

Hi ,

I need create register from variable.

My variable is:

my\_rules:

- name: ‘AllowSSH’  
protocol: Tcp  
destination\_port\_range: 22  
access: Allow  
priority: 100  
direction: Inbound
- name: ‘AllowHTTPS’  
protocol: Tcp  
destination\_port\_range: 443  
access: Allow  
priority: 90  
direction: Inbound

I need, put the content in variable.

Is need to security\_group in azure or aws.
