From a1f6622538c86b88c5884d187df3a57374abe105 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 19 Dec 2024 08:53:10 +0100 Subject: [PATCH] docs: Clarify the include_role limitations Co-authored-by: Matt Willsher --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6733027..ac34c33 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ via simple password. If you need this functionality, be sure to set **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). +as described in the Ansible ['taskify includes' proposal](https://github.com/ansible/proposals/issues/136). To work around this, call `meta: flush_handlers` as detailed in the +[official Ansible 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