.bat extension is for Windows batch file. Bash files typically have .sh or
.bash extension. Could you show the tasks you have tried and their
respective output ?
On Monday, September 24, 2018 at 6:41:12 AM UTC-7, vowner wrote:
>
> Hi Experts,
>
> I am automating IBM CLM application and i would
Hi ,
Yes. It's .bat file and it's for stating a ibm liberty server
"server.startup.bat".
---
- name: start liberty server
hosts: win
tasks:
- name: start server
Win_commad: D:\IBM\JazzTeamServer\server.startup.bat
Ansible is running this playbook without error .. but it's not
Hi Tony,
Any suggestions here please
On Mon, 24 Sep 2018, 21:42 vivek mv, wrote:
> Hi ,
>
> Yes. It's .bat file and it's for stating a ibm liberty server
> "server.startup.bat".
>
> ---
> - name: start liberty server
>hosts: win
>tasks:
> - name: start server
>Win_commad:
Hello Experts,
Any suggestion here... ?
On Tuesday, September 25, 2018 at 12:27:32 AM UTC+5:30, vowner wrote:
>
> Hi Tony,
>
> Any suggestions here please
>
> On Mon, 24 Sep 2018, 21:42 vivek mv, wrote:
>
>> Hi ,
>>
>> Yes. It's .bat file and it's for stating a ibm liberty server
>> "server.sta
The win_command module can be used to execute batch files without any
issues. If it is returning without any errors it sounds like the batch file
is failing silently and not informing you of what has gone wrong. You can
add some echo statements or create files to verify whether it is truly
run
Hello Jordan,
Thanks for your advise.
But same batch file u can execute in the server and it's working. And also
through powershell it's getting executed.
On Wed, 26 Sep 2018, 03:36 Jordan Borean, wrote:
> The win_command module can be used to execute batch files without any
> issues. If it
Running through Ansible is different from running locally because the tasks
are being run under a WinRM logon. Windows treats network (WinRM) and
interactive (local) logons differently and can have different behaviour and
access permissions depending on the type of logon. My recommendations stil
Hello Jordan.
Yes you are correct. Actually through ansible I already installed IBM
liberty server using installer. And here the server.startup. bat file is
the default IBM package getting deployed during the liberty server
installation. So inorder to start the liberty server, I want to execute
th
Hi Jordan,
Any suggestions further to guide me here in this scenario..??
On Wed, 26 Sep 2018, 10:37 vivek mv, wrote:
> Hello Jordan.
>
> Yes you are correct. Actually through ansible I already installed IBM
> liberty server using installer. And here the server.startup. bat file is
> the default
You never really said what the batch file actually does. Does it start a
process that runs in the background or is it meant to run a short living
process?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and st
Hello Jordan,
the attached are the batch file, which will start and stop IBM Liberty
servers and deploy the war files on this. Once it got started, a process
will be running in windows for liberty server.
server.startup.bat
_
#!/bin/sh
# Licensed Materials - Property of IB
2 things;
1. That's a bash script and not a batch file, simply changing the extension
from .sh to .bat will not work
2. Processes spawned in WinRM are killed once the parent process exist
1 is either you copied the wrong script or are using the wrong file, I
can't help you there. 2 can be overc
Hello Jordan,
ya, its my bad that i mistakenly pasted the wrong script. The batch script
is as given below., Also, in my playbook, starting the liberty server using
this batch file is a one task only and there are too many other tasks in
continuous to this after the server got started.
could y
Please find my current yaml file to execute the startup batch fille and
could you please advise me what modification needed to do for using async
here in this yaml.
---
- name: start liberty server
hosts: win
tasks:
- name: start server
Win_commad: D:\IBM\JazzTeamServer\serv
Have a look at the async docs
https://docs.ansible.com/ansible/latest/user_guide/playbooks_async.html. You
want to use the async keyword and set ‘poll: 0’ as task directives.
As I said though, async is not the right tool for what you are looking for. You
should be using a scheduled task or Wind
15 matches
Mail list logo