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 use of ansible?

1 Answers  


How to keep secret data in a playbook?

1 Answers  


How do I keep secret data in my playbook?

1 Answers  


Why is ‘{{ }}’ notation used? And how can one interpolate variables or dynamic variable names?

0 Answers  


What is the ask_pass module in ansible?

1 Answers  


What are the variables in ansible?

1 Answers  


When should I use {{ }}? Also, how to interpolate variables or dynamic variable names

1 Answers  


What is ansible tower?

1 Answers  


What features does the ansible tower provide?

1 Answers  


why don’t you ship in x format?

1 Answers  


Describe the working of ansible.

1 Answers  


Can you copy files recursively onto a target host? If yes, how?

1 Answers  


Categories