Hi,
I am currently just trying stuff on the command line, I will do the 
playbook later.
Ansible 2.2.1.0 on centos7.
Trying to run a command on a windows 10 PC.

ansible mesh -u user -k -m win_ping
SSH password: 
mesh | SUCCESS => {
    "changed": false, 
    "ping": "pong"
}

So that works. But if I run

ansible mesh -u user -k -m win_command -a 'ng build 
chdir=C:\Temp\angularjs_example\angular2\heroes_new'
SSH password: 
mesh | FAILED | rc=2 >>
The system cannot find the file specified

or

ansible mesh -u user -k -m win_shell -a "ng build 
chdir=C:\Temp\angularjs_example\angular2\heroes_new"
SSH password: 
mesh | FAILED | rc=267 >>
The directory name is invalid

Now the folder does exist. I have tried with escaping backslashes, in 
double quotes, with forward quotes. All with the same result.

Any ideas what I am doing wrong?

Regards

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/08f9c857-489d-4fee-8532-dba0a00fa0d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to