Skip to content

Commit

Permalink
docs: Clarify the include_role limitations
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Willsher <[email protected]>
  • Loading branch information
Jakuje and mattwillsher committed Dec 19, 2024
1 parent 14bf764 commit a1f6622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1f6622

Please sign in to comment.