diff --git a/docs/docsite/rst/dev_guide/module_lifecycle.rst b/docs/docsite/rst/dev_guide/module_lifecycle.rst index 1e02c3448d4..823e2b37388 100644 --- a/docs/docsite/rst/dev_guide/module_lifecycle.rst +++ b/docs/docsite/rst/dev_guide/module_lifecycle.rst @@ -69,13 +69,13 @@ Changing a module or plugin name in the Ansible main repository =============================================================== You can also rename a module and keep a deprecated alias to the old name by using a symlink that starts with _. -This example allows the ``stat`` module to be called with ``fileinfo``, making the following examples equivalent:: +This example allows the ``stat`` module to be called with ``fileinfo``, making the following examples equivalent: - EXAMPLES = ''' +.. code-block:: yaml + ln -s stat.py _fileinfo.py ansible -m stat -a "path=/tmp" localhost ansible -m fileinfo -a "path=/tmp" localhost - ''' Renaming a module or plugin in a collection, or redirecting a module or plugin to another collection ====================================================================================================