in Technology by
What is a handler in Ansible?

1 Answer

0 votes
by

A handler is like a regular task in a playbook in Ansible. But it runs only if a task alerts the handler. Handlers are loaded automatically by roles/<role_name>/handlers/main.yaml.

These are run just once, after the completion of all the tasks in a particular play.

Related questions

0 votes
    Which module can be used to force a handler to run in between two tasks? (1)meta (2)asset (3)flush (4)None of the options...
asked Jan 26, 2023 in Technology by JackTerrance
0 votes
    What are the components of Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is Ansible pipelining?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is use of Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How many modules are there in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How to keep data secret in a Ansible playbook?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How is Ansible upgraded?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    How does synchronize module works of an Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    What is Tag in Ansible?...
asked Jan 29, 2023 in Technology by JackTerrance
0 votes
    In the context of Ansible, what is meant by “facts”?...
asked Jan 28, 2023 in Technology by JackTerrance
0 votes
    How to use Ansible for creating encrypted files?...
asked Jan 28, 2023 in Technology by JackTerrance
0 votes
    What is Ansible Galaxy?...
asked Jan 28, 2023 in Technology by JackTerrance
0 votes
    What is idempotency in Ansible?...
asked Jan 28, 2023 in Technology by JackTerrance
0 votes
    How are CD and CI related to Ansible?...
asked Jan 28, 2023 in Technology by JackTerrance
0 votes
    Ansible is a/an ____________________. (1)All the options (2)Configuration management (3)Infrastructure as code (4)Orchestration Engine...
asked Jan 27, 2023 in Technology by JackTerrance
...