1
0
Fork 0
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:
Matt Martz 2019-01-21 13:28:07 -06:00 committed by GitHub
parent 7ceb2ac95a
commit 552cb1f6b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
============