added handlers_from (#49220)

* added handlers_from

fixes #46769
This commit is contained in:
Brian Coca
2018-12-18 11:28:24 -05:00
committed by GitHub
parent 1e415899ad
commit 88c87a3583
8 changed files with 72 additions and 2 deletions

View File

@@ -48,6 +48,11 @@ options:
- Overrides the role's metadata setting to allow using a role more than once with the same parameters.
type: bool
default: 'yes'
handlers_from:
description:
- File to load from a role's C(handlers/) directory.
default: main
version_added: '2.8'
notes:
- Handlers are made available to the whole play.
- "Since Ansible 2.7: variables defined in C(vars) and C(defaults) for the role are exposed at playbook parsing time.

View File

@@ -61,6 +61,11 @@ options:
type: bool
default: 'no'
version_added: '2.7'
handlers_from:
description:
- File to load from a role's C(handlers/) directory.
default: main
version_added: '2.8'
notes:
- Handlers are made available to the whole play.
- Before Ansible 2.4, as with C(include), this task could be static or dynamic, If static, it implied that it won't