Skip to content

Commit

Permalink
docs: Clarify when handlers are invoked
Browse files Browse the repository at this point in the history
Fixes: #301

Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Dec 18, 2024
1 parent ac38442 commit f57f6ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Ubuntu. This is not the default assigned by this module - it will set
via simple password. If you need this functionality, be sure to set
`sshd_PermitRootLogin yes` for those hosts.

**NOTE** The sshd service is reloaded/restarted automatically, only if the role is
invoked using `roles` keyword. Using `include_role` won't trigger handlers
as described in
[official documentation](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_handlers.html#controlling-when-handlers-run).
If you need to invoke the handlers in this case, use `meta: flush_handlers`.

## Requirements

Tested on:
Expand Down

0 comments on commit f57f6ca

Please sign in to comment.