Skip to main content
Solved

Any way to stop all services using ansible?


Forum|alt.badge.img

I am trying to follow the ansible documentation for ansible request. I am trying to figure out a way to stop the services, it seems that there is only a way to restart them. I cannot figure out where the other actions are listed within the documentation. Can somebody point me in the right direction? 

 

I know that ansible request contacts the API, but I cannot find a references for this command within the API documentation either.

 

I also cannot find documentation for the acceptable parameters within the “payload” parameter.

 

https://github.com/Commvault/ansiblev2#commvault.ansible.request

Best answer by chrisknows

Damian Andre wrote:

Not sure about ansible but from an OS level you could control it at a service level. For linux you should be able to do “Commvault stop” or “Commvault start.

 

For windows:

 

This is absolutely the way to go, you should not be using CV apis to stop and start cv services if you have the option to use something that is not dependant on the services you are fiddling with.

View original
Did this answer your question?

3 replies

Scott Moseman
Vaulter
Forum|alt.badge.img+18

I’m guessing there’s no “shutdown” since we would not be able to “start” them by API.  It would be a one-way operation which could not be undone through API calls.

Thanks,
Scott
 


Damian Andre
Vaulter
Forum|alt.badge.img+23

Not sure about ansible but from an OS level you could control it at a service level. For linux you should be able to do “Commvault stop” or “Commvault start.

 

For windows:

 


chrisknows
Byte
Forum|alt.badge.img+10
  • Byte
  • 82 replies
  • Answer
  • March 22, 2023
Damian Andre wrote:

Not sure about ansible but from an OS level you could control it at a service level. For linux you should be able to do “Commvault stop” or “Commvault start.

 

For windows:

 

This is absolutely the way to go, you should not be using CV apis to stop and start cv services if you have the option to use something that is not dependant on the services you are fiddling with.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings