Ansible Playbook for enable ssl on weblogic 12c server using WLST

82 views
Skip to first unread message

malek sakir

unread,
Jul 20, 2023, 4:19:37 AM7/20/23
to Ansible Project
In my environment we have deployed oracle WebLogic 12c on windows host
using of wlst.cmd we have perform some tasks
wlst.cmd path is C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd
first i am go to this path and open wlst.cmd
then i am connect my oracle WebLogic console using this command:
connect('weblogic','P@$$w0rd','172.17.16.49:7001')
then i am execute python script using this command:
execfile('C:\Users\sakir\Desktop\script.py')
and my task is successfully done
but I have multiple server for this same process so how i can done this tasks using ansible playbook.

Atul Nasir

unread,
Aug 19, 2023, 2:08:47 PM8/19/23
to Ansible Project
---
- name: Enable SSL on WebLogic
  hosts: weblogic_servers
  tasks:
    - name: Execute WLST script
      win_command: >

        C:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\wlst.cmd
        -i -c "connect('weblogic','P@$$w0rd','172.17.16.49:7001'); execfile('C:\Users\sakir\Desktop\script.py')"
Reply all
Reply to author
Forward
0 new messages