On Thu, 22 Aug 2019 at 09:54, Manish Kumar <[email protected]> wrote: > > > Hi All, > > getting below error so you have any idea about it ? > > ERROR! Syntax Error while loading YAML. > mapping values are not allowed in this context > > The error appears to be in '/home/manish/mk/ansible/install_exe.yml': line 6, > column 13, but may > be elsewhere in the file depending on the exact syntax problem. > > The offending line appears to be: > > - name: Install & start application as Windows service (via nssm) > win_nssm: > ^ here > > Playbook > > --- > - name: Install a service > gather_facts: false > hosts: all > - name: Install & start application as Windows service (via nssm) > win_nssm: > name: "npp.7.7.1.Installer" > application: "{{C:\Users\Administrator\Downloads}}"
Curly braces put you in jinja context, and I don't think "C:\Users\Administrator\Downloads" is a variable. According to the docs application is "The application binary". -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwPcdCK5DyaZOwMxGSj-d0bkSUjwYwKi5mKym-nZpSARaQ%40mail.gmail.com.
