Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How do I write an ansible handler with multiple tasks?



How do I write an ansible handler with multiple tasks?..

Answer / Mohit Kumar Singh

"To create a handler with multiple tasks in Ansible, you can define the tasks inside a list under the "handlers" key within your play. Here's an example:n[
{"name": "example_handler",n "handlers": [n {"command1": "..."},n {"command2": "..."}n ]n }"]

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ansible Interview Questions

What is the way to access shell environment variables in ansible?

1 Answers  


When should you test playbooks and roles?

1 Answers  


When to use {{}} ? How to interpolate variables or dynamic variable names?

1 Answers  


Enlist the differences between variable name and environment variables.

1 Answers  


What are ansible vaults and why are they used?

1 Answers  


What is ansible galaxy?

1 Answers  


How do I see a list of all of the ansible_ variables?

1 Answers  


Does ansible support aws?

1 Answers  


Explain the callback plugin in ansible?

1 Answers  


Is ansible an open source tool?

1 Answers  


What is ansible role and how are they different from the playbook?

1 Answers  


How does configuration management is help an organization?

1 Answers  


Categories