From 14bf7646ab0b04bcd398a922843b07380c1d6520 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 18 Dec 2024 17:52:20 +0100 Subject: [PATCH] docs: Clarify when handlers are invoked Fixes: #301 Signed-off-by: Jakub Jelen --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index b272b0e..6733027 100644 --- a/README.md +++ b/README.md @@ -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: