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