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”}
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.