While running the setup-pxe role, the task fails showing error
fatal: [localhost]: FAILED! => {
"msg": "The conditional check 'IPXE is True' failed. The error was: template error while templating string: no test named 'True'. String: {% if IPXE is True %} True {% else %} False {% endif %}\n\nThe error appears to be in '/root/ansible-ai-playbook/roles/setup-pxe/tasks/main.yml': line 6, 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 tftp services\n ^ here\n"
}
While running the
setup-pxe
role, the task fails showing errorThe task shows conditionals as
This can be solved by changing the
when: IPXE is True
towhen: IPXE is defined
, a small conditional var change fixes the issue,I will be adding a PR fix for the same.