On 10/13/20 2:42 AM, Liew KengHong wrote: > 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. Regards Racke > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > ansible-project+unsubscr...@googlegroups.com > <mailto:ansible-project+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/017fcc51-41ca-4ba8-8570-a88888d5f4d7n%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/017fcc51-41ca-4ba8-8570-a88888d5f4d7n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- Ecommerce and Linux consulting + Perl and web application programming. Debian and Sympa administration. Provisioning with Ansible. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d29bacdc-25c3-7169-86c9-b78d193a21b0%40linuxia.de.
signature.asc
Description: OpenPGP digital signature