# play book execution error

**URL:** <https://forum.ansible.com/t/play-book-execution-error/33576>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [August 10, 2020, 3:49pm UTC](https://forum.ansible.com/t/play-book-execution-error/33576 "2020-08-10T15:49:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![A11](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@A11](https://forum.ansible.com/u/A11)\
**Post date:** [August 10, 2020, 3:49pm UTC](https://forum.ansible.com/t/play-book-execution-error/33576/1 "2020-08-10T15:49:56Z")

</div>

Hi Mates, I am getting below error while executing playbook for a new server that needs to be added .

TASK [krb5\_workstation : install krb5\_workstation package from rhel-x86\_64-server-7-datacenter] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Monday 10 August 2020 11:19:22 -0400 (0:00:00.128) 0:01:14.829 \*\*\*\*\*\*\*\*\*  
fatal: [hsdmqa08]: FAILED! =\> {“msg”: “The task includes an option with an undefined variable. The error was: ‘krb5\_workstation\_package\_name7’ is undefined\n\nThe error appears to have been in ‘/opt/hd/sh/srv/ansible/development/axs8u3p/hadoop/roles/krb5\_workstation/tasks/main.yml’: line 9, 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- name: install krb5\_workstation package from rhel-x86\_64-server-7-datacenter\n ^ here\n”}

Please find the main.yml below.

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [August 10, 2020, 4:23pm UTC](https://forum.ansible.com/t/play-book-execution-error/33576/2 "2020-08-10T16:23:46Z")

</div>

> Hi Mates, I am getting below error while executing playbook for a new server that needs to be added .
> 
> TASK [krb5\_workstation : install krb5\_workstation package from rhel-x86\_64-server-7-datacenter]  
> \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> Monday 10 August 2020 11:19:22 -0400 (0:00:00.128) 0:01:14.829 \*\*\*\*\*\*\*\*\*  
> fatal: [hsdmqa08]: FAILED! =\> {"msg": "The task includes an option with an undefined variable. The error was:  
> 'krb5\_workstation\_package\_name7' is undefined\n\nThe error appears to have been in  
> '/opt/hd/sh/srv/ansible/development/axs8u3p/hadoop/roles/krb5\_workstation/tasks/main.yml': line 9, 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- name: install  
> krb5\_workstation package from rhel-x86\_64-server-7-datacenter\n ^ here\n"}
> 
> Please find the main.yml below.

Apparently the variable krb5\_workstation\_package\_name7 is not defined. Check if there is a typo in the variable name.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
