On Monday 11 January 2021 at 23:16:28, Ryan Nix wrote:

> Hello,
> 
> I had my playbook working perfectly until I made what I thought was a small
> change!

It would probably help if you told us exactly what that change was - show us 
the old version and the new one (or, at least, the bits that are different).

> Ansible keeps telling me there is a problem with line 1 but I'm having a
> hard time interpreting what the error means. Almost seems like VS Code did
> something?
> 
> Error:
> 
> "At line:1 char:26\r\n+ chcp.com 65001 >nul 2>&1 && PowerShell -NoProfile -
> NonInteractive -Ex ...\r\n+ ~~\r\nThe token '&&' is not a valid statement
> separator in this version.\r\n"

That to me looks more like a complaint about the powershell script you're 
using to call ansible than it does about the ansible playbook itself (however 
on the other hand I know nothing whatever about powershell so I could be 
completely wrong).  I simply don't see an instance of '&&' in your playbook, 
so the error can't be talking about that.


Antony.

-- 
All generalisations are inaccurate.

                                                   Please reply to the list;
                                                         please *don't* CC me.

Reply via email to