-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider action plugin redirects (#360)
* Consider action plugin redirects. * Add tests.
- Loading branch information
1 parent
7e0e20e
commit 01a5e90
Showing
52 changed files
with
800 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
bugfixes: | ||
- "Also consider action plugin redirects/deprecations in runtime metadata for modules, | ||
since for users there is no difference. Also ``ansible.builtin.yum`` only has a action | ||
plugin redirect to ``ansible.builtin.dnf``, so this is needed to ensure that a stub | ||
page generated for ``ansible.builtin.yum`` | ||
(https://github.com/ansible-community/antsibull-docs/pull/360)." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ Synopsis | |
|
||
.. Aliases | ||
Aliases: foo_3_redirect, foo_4_redirect, foo_5_redirect | ||
|
||
.. Requirements | ||
|
25 changes: 25 additions & 0 deletions
25
tests/functional/baseline-default/collections/ns2/col/foo_1_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_1_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_1_redirect module | ||
+++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
To use it in a playbook, specify: :code:`ns2.col.foo_1_redirect`. | ||
|
||
- This is a redirect to the :ansplugin:`ns2.col.foo module <ns2.col.foo#module>`. | ||
- This redirect does **not** work with Ansible 2.9. |
25 changes: 25 additions & 0 deletions
25
tests/functional/baseline-default/collections/ns2/col/foo_2_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_2_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_2_redirect module | ||
+++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
To use it in a playbook, specify: :code:`ns2.col.foo_2_redirect`. | ||
|
||
- This is a redirect to the :ansplugin:`ns2.col.foo module <ns2.col.foo#module>`. | ||
- This redirect does **not** work with Ansible 2.9. |
25 changes: 25 additions & 0 deletions
25
tests/functional/baseline-default/collections/ns2/col/foo_3_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_3_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_3_redirect module | ||
+++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
To use it in a playbook, specify: :code:`ns2.col.foo_3_redirect`. | ||
|
||
- This is a redirect to the :ansplugin:`ns2.col.foo2 module <ns2.col.foo2#module>`. | ||
- This redirect does **not** work with Ansible 2.9. |
24 changes: 24 additions & 0 deletions
24
tests/functional/baseline-default/collections/ns2/col/foo_4_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_4_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_4_redirect | ||
++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This plugin was part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
This module has been removed | ||
in version 2.0.0 of ns2.col. | ||
It is gone |
27 changes: 27 additions & 0 deletions
27
tests/functional/baseline-default/collections/ns2/col/foo_5_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_5_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_5_redirect module | ||
+++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
|
||
- This redirect has been **deprecated**. Please update your tasks to use the new name ``ns2.col.foo2`` instead. | ||
It will be removed in version 5.0.0 of ns2.col. | ||
- This is a redirect to the :ansplugin:`ns2.col.foo2 module <ns2.col.foo2#module>`. | ||
- This redirect does **not** work with Ansible 2.9. | ||
- The collection contains the following information on this deprecation: It will be really gone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ Synopsis | |
|
||
.. Aliases | ||
Aliases: foo_3_redirect, foo_4_redirect, foo_5_redirect | ||
|
||
.. Requirements | ||
|
25 changes: 25 additions & 0 deletions
25
...unctional/baseline-no-breadcrumbs/collections/ns2/col/foo_1_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_1_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_1_redirect module | ||
+++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
To use it in a playbook, specify: :code:`ns2.col.foo_1_redirect`. | ||
|
||
- This is a redirect to the :ansplugin:`ns2.col.foo module <ns2.col.foo#module>`. | ||
- This redirect does **not** work with Ansible 2.9. |
25 changes: 25 additions & 0 deletions
25
...unctional/baseline-no-breadcrumbs/collections/ns2/col/foo_2_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_2_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_2_redirect module | ||
+++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
To use it in a playbook, specify: :code:`ns2.col.foo_2_redirect`. | ||
|
||
- This is a redirect to the :ansplugin:`ns2.col.foo module <ns2.col.foo#module>`. | ||
- This redirect does **not** work with Ansible 2.9. |
25 changes: 25 additions & 0 deletions
25
...unctional/baseline-no-breadcrumbs/collections/ns2/col/foo_3_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_3_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_3_redirect module | ||
+++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
To use it in a playbook, specify: :code:`ns2.col.foo_3_redirect`. | ||
|
||
- This is a redirect to the :ansplugin:`ns2.col.foo2 module <ns2.col.foo2#module>`. | ||
- This redirect does **not** work with Ansible 2.9. |
24 changes: 24 additions & 0 deletions
24
...unctional/baseline-no-breadcrumbs/collections/ns2/col/foo_4_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_4_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_4_redirect | ||
++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This plugin was part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
This module has been removed | ||
in version 2.0.0 of ns2.col. | ||
It is gone |
27 changes: 27 additions & 0 deletions
27
...unctional/baseline-no-breadcrumbs/collections/ns2/col/foo_5_redirect_module.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.. Document meta | ||
:orphan: | ||
|
||
.. meta:: | ||
:antsibull-docs: <ANTSIBULL_DOCS_VERSION> | ||
|
||
.. Anchors | ||
.. _ansible_collections.ns2.col.foo_5_redirect_module: | ||
|
||
.. Title | ||
ns2.col.foo_5_redirect module | ||
+++++++++++++++++++++++++++++ | ||
|
||
.. Collection note | ||
.. note:: | ||
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0). | ||
|
||
|
||
- This redirect has been **deprecated**. Please update your tasks to use the new name ``ns2.col.foo2`` instead. | ||
It will be removed in version 5.0.0 of ns2.col. | ||
- This is a redirect to the :ansplugin:`ns2.col.foo2 module <ns2.col.foo2#module>`. | ||
- This redirect does **not** work with Ansible 2.9. | ||
- The collection contains the following information on this deprecation: It will be really gone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,7 @@ Synopsis | |
|
||
.. Aliases | ||
Aliases: foo_3_redirect, foo_4_redirect, foo_5_redirect | ||
|
||
.. Requirements | ||
|
Oops, something went wrong.