Script for websphere app server restart based on user request

0 votes

I need an Ansible script to restart the WebSphere application server based on user requests. For Ex. If input from the user is a cell name, scrip should start servers in that cell name in a rolling fashion(one after the other) If input from the user is the server name, it should start the only a specific server.

Oct 19, 2020 in Ansible by Saurabh
• 120 points

edited Oct 19, 2020 by MD 131 views

1 answer to this question.

0 votes


You can use the service module to control the state of your service. But in your use case, you are trying to control your tasks according to user input. So in these types of requirements, you can use tags in your tasks. So when you will run the playbook you need to pass the tag name.

answered Oct 19, 2020 by MD
• 95,160 points

Related Questions In Ansible

0 votes
1 answer

How to write ansible script for installing jenkins on aws RHEL?

Check this out. H ...READ MORE

answered Sep 23, 2020 in Ansible by smy
+1 vote
2 answers

Running ansible command on a single server when it is deployed to multiple servers

You can try the run_once attribute: Example from ...READ MORE

answered Jun 13, 2018 in Ansible by DareDev
• 6,890 points
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
+1 vote
1 answer

How to deploy war file into the Websphere using ansible playbook

Hi@M, You can use the below-given example. - name: ...READ MORE

answered Jun 29, 2020 in Ansible by MD
• 95,160 points