replace - fixed combined before and after usage (#31452)

When using before and after in combination, the opposite behavior was induced. This PR makes the the replacement happen between the specified patterns as intended.

* Added integration tests
* Add changelog, porting guide entry, and minor doc fixes
This commit is contained in:
Evan Kaufman 2019-03-26 08:49:58 -07:00 committed by Sam Doran
commit cf69ec5db0
6 changed files with 317 additions and 26 deletions

View file

@ -224,6 +224,8 @@ Noteworthy module changes
* The ``pip`` module has added a dependency on ``setuptools`` to support version requirements, this requirement is for
the Python interpreter that executes the module and not the Python interpreter that the module is managing.
* Prior to Ansible 2.7.10, the ``replace`` module did the opposite of what was intended when using the ``before`` and ``after`` options together. This now works properly but may require changes to tasks.
Plugins
=======