# Error when precheck Kolla-ansible

**URL:** <https://forum.ansible.com/t/error-when-precheck-kolla-ansible/29328>\
**Category:** Ansible Project\
**Created:** [December 26, 2018, 4:41am UTC](https://forum.ansible.com/t/error-when-precheck-kolla-ansible/29328 "2018-12-26T04:41:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![M\_nh\_Nguy\_n\_Ti\_n](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@M\_nh\_Nguy\_n\_Ti\_n](https://forum.ansible.com/u/M_nh_Nguy_n_Ti_n)\
**Post date:** [December 26, 2018, 4:41am UTC](https://forum.ansible.com/t/error-when-precheck-kolla-ansible/29328/1 "2018-12-26T04:41:53Z")

</div>

Hi everyone  
I am facing this problem when precheck with Kolla-ansible.  
My IP: controller 172.16.32.16. compute-01: 172.16.32.15, compute-02:172.16.32.14  
Please help me. Thank a lot!

fatal: [172.16.32.15]: FAILED! =\> {“msg”: “The conditional check ‘inventory\_hostname not in groups[‘deployment’]’ failed. The error was: error while evaluating conditional (inventory\_hostname not in groups[‘deployment’]): Unable to look up a name or access an attribute in template string ({% if inventory\_hostname not in groups[‘deployment’] %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like ‘-’: argument of type ‘StrictUndefined’ is not iterable\n\nThe error appears to have been in ‘/usr/local/share/kolla-ansible/ansible/roles/prechecks/tasks/main.yml’: line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n—\n- include\_tasks: port\_checks.yml\n ^ here\n”}  
fatal: [172.16.32.14]: FAILED! =\> {“msg”: “The conditional check ‘inventory\_hostname not in groups[‘deployment’]’ failed. The error was: error while evaluating conditional (inventory\_hostname not in groups[‘deployment’]): Unable to look up a name or access an attribute in template string ({% if inventory\_hostname not in groups[‘deployment’] %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like ‘-’: argument of type ‘StrictUndefined’ is not iterable\n\nThe error appears to have been in ‘/usr/local/share/kolla-ansible/ansible/roles/prechecks/tasks/main.yml’: line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n—\n- include\_tasks: port\_checks.yml\n ^ here\n”}  
fatal: [172.16.32.16]: FAILED! =\> {“msg”: “The conditional check ‘inventory\_hostname not in groups[‘deployment’]’ failed. The error was: error while evaluating conditional (inventory\_hostname not in groups[‘deployment’]): Unable to look up a name or access an attribute in template string ({% if inventory\_hostname not in groups[‘deployment’] %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like ‘-’: argument of type ‘StrictUndefined’ is not iterable\n\nThe error appears to have been in ‘/usr/local/share/kolla-ansible/ansible/roles/prechecks/tasks/main.yml’: line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n—\n- include\_tasks: port\_checks.yml\n ^ here\n”}
