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 1,094 views

1 answer to this question.

0 votes

Hi@Saurabh,

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,460 points

Related Questions In Ansible

0 votes
1 answer

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

Check this out. https://github.com/geerlingguy/ansible-role-jenkins H ...READ MORE

answered Sep 24, 2020 in Ansible by smy
1,201 views
+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 14, 2018 in Ansible by DareDev
• 6,890 points
2,468 views
+1 vote
2 answers
+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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,041 views
+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,460 points
2,398 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP