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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

When should I use {{ }}?

2


What is ansible and what makes it stand out from the rest of the configuration management tools?

3


How do I generate crypted passwords for the user module?

3


Talk about ansible architecture.

3


What is the method to check the inventory vars defined for the host?

2


What is ansible galaxy?

3


What are ad-hoc commands? Give an example.

3


How can I set the path or any other environment variable for a task or entire playbook?

2


What are ansible vaults?

3


What is the use of ansible?

3


What are playbooks in ansible?

2


How to create encrypted files using ansible?

3


Does ansible support hardware provisioning?

2


Explain a few of the basic terminologies or concepts in ansible.

3


Explain what are playbooks in ansible? Explain with some examples.

3