From 93c2cb2b8e1df8a5e31c2119f4c13bc8f97ed775 Mon Sep 17 00:00:00 2001 From: IMvision12 <88665786+IMvision12@users.noreply.github.com> Date: Sat, 1 Oct 2022 21:07:57 +0530 Subject: [PATCH] #78971 Update module_lifecycle.rst (#78974) * Update module_lifecycle.rst --- docs/docsite/rst/dev_guide/module_lifecycle.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ====================================================================================================