# values empty for variables - ansible

**URL:** <https://forum.ansible.com/t/values-empty-for-variables-ansible/28958>\
**Category:** Ansible Project\
**Created:** [November 6, 2018, 2:41pm UTC](https://forum.ansible.com/t/values-empty-for-variables-ansible/28958 "2018-11-06T14:41:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadim\_mansour](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@nadim\_mansour](https://forum.ansible.com/u/nadim_mansour)\
**Post date:** [November 6, 2018, 2:41pm UTC](https://forum.ansible.com/t/values-empty-for-variables-ansible/28958/1 "2018-11-06T14:41:51Z")

</div>

I have the below variables , In some servers I just need to keep the value empty as I dont want to open the port  
but when I keep it empty its returning error . any solution ??? any

I putting my variables in all under group-vars

fatal: [uat\_cdxapp]: FAILED! =\> {

“changed”: false,

“module\_stderr”: “Shared connection to 10.1.116.149 closed.\r\n”,

“module\_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible\_rfACo3/ansible\_module\_firewalld.py", line 712, in \r\n main()\r\n File "/tmp/ansible\_rfACo3/ansible\_module\_firewalld.py", line 567, in main\r\n port, protocol = module.params[‘port’].strip().split(‘/’)\r\nValueError: need more than 1 value to unpack\r\n”,

“msg”: “MODULE FAILURE”,

“rc”: 1

app\_officer\_nsecure\_port: 8080/tcp  
app\_officer\_secure\_port:  
app\_client\_nsecure\_port: 80/tcp  
app\_client\_secure\_port: 443/tcp
