Hi there -

I'm trying to get the following domain join script to execute through 
ansible, but it always fails with error code 1:

C:\windows\system32\djoin.exe /PROVISION /REUSE /DOMAIN **redacted** /MACHINE 
{{ansible_hostname}} /SAVEFILE c:\{{ansible_hostname}}.txt

The exact same code works fine when I run it from a command prompt on the 
machine, so I'm very confused why it wouldn't work.

I've tried using raw to execute a script I copied up before, using raw with 
the script embedded, and also using the script directive.

Here is the error data:

fatal: [vagrant1 -> **redacted**]: FAILED! => {"changed": false, "failed": 
true, "invocation": {"module_args": {"_raw_params": 
"C:\\windows\\system32\\djoin.exe 
/PROVISION /REUSE /DOMAIN **redacted** /MACHINE VAGRANT-2012-R2 /SAVEFILE 
c:\\VAGRANT-2012-R2.txt"}, "module_name": "raw"}, "rc": 1, "stderr": "", 
"stdout": "", "stdout_lines": []}


Any thoughts on how to debug this?  I can execute other commands via "raw", 
and this command works just fine (even running the script ansible copied up 
directly).

Thanks in advance!

-- 
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/20e608b6-7637-4e1f-9c6f-48058a0349c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to