Hi,
I have a template that copy the configuration file to another directory. But it return fatal error:
{“msg”: “The task includes an option with an undefined variable. The error was: ‘deploy_dir’ is undefined\n\nThe error appears to be in ‘/tmp/awx_2010_v_ijeetv/project/roles/backup_nxos/tasks/main.yml’: line 19, 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: copy file to staging folder\n ^ here\n”}
The script look normal and do not find any syntax error:
Hi,
I have a template that copy the configuration file to another directory. But it return fatal error:
{"msg": "The task includes an option with an undefined variable. The error was: 'deploy_dir' is undefined\n\nThe error
appears to be in '/tmp/awx_2010_v_ijeetv/project/roles/backup_nxos/tasks/main.yml': line 19, 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: copy file
to staging folder\n ^ here\n"}
The script look normal and do not find any syntax error:
What could be the possible of this error?
You did not define the deploy_dir variable. The error means that you need to assign a value to this variable.