mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add porting guide note about change from 49317 (#49629)
This commit is contained in:
parent
7ceb2ac95a
commit
552cb1f6b9
1 changed files with 9 additions and 0 deletions
|
@ -27,6 +27,15 @@ The two facts used in playbooks most often, ``ansible_distribution`` and ``ansib
|
|||
difference. However, other facts like ``ansible_distribution_release`` and
|
||||
``ansible_distribution_version`` may change as erroneous information gets corrected.
|
||||
|
||||
Imports as handlers
|
||||
-------------------
|
||||
|
||||
Beginning in version 2.8, a task cannot notify ``import_tasks`` or a static ``include`` that is specified in ``handlers``.
|
||||
|
||||
The goal of a static import is to act as a pre-processor, where the import is replaced by the tasks defined within the imported file. When
|
||||
using an import, a task can notify any of the named tasks within the imported file, but not the name of the import itself.
|
||||
|
||||
To achieve the results of notifying a single name but running mulitple handlers, utilize ``include_tasks``, or ``listen`` :ref:`handlers`.
|
||||
|
||||
Command Line
|
||||
============
|
||||
|
|
Loading…
Reference in a new issue