Hi

I have a playbook that is running the below powershell script.
If I run the script on the actual server it works perfectly. But when I run 
the playbook nothing happens on the server.
The job returns as changed....but nothing has happened.

The playbook does seem to run quite quickly and I was wondering if Ansible 
is stopping the Powershell job before it completes? Can Ansible do that, or 
does it not have any effect on the script after it has been executed? If it 
does have an efffect on stopping the job are you able to put a wait on the 
job to allow the powershell script to complete?

$InstallPath = "C:\Program Files\Octopus Deploy\Tentacle"
$Server = $InstallPath + "\Tentacle.exe"

# Start-Process "C:\Temp\Octopus.Tentacle.3.0.10.2278-x64.msi" /qn -Wait

Start-Process $Server 'create-instance --instance "Tentacle" --config 
"C:\Octopus\Tentacle.config"' -Wait
Start-Process $Server 'new-certificate --instance "Tentacle" --if-blank' 
-Wait
Start-Process $Server 'configure --instance "Tentacle" --reset-trust' -Wait
Start-Process $Server 'configure --instance "Tentacle" --home "C:\Octopus" 
--app "C:\Octopus\Applications" --port "10933" --noListen "False"' -Wait
Start-Process $Server 'configure --instance "Tentacle" --trust 
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"' -Wait
Start-Process $Server 'service --instance "Tentacle" --install --start' 
-Wait


Cheers
Mark

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d3d93432-5721-4f4f-90eb-284e3d12858f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to