mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Deprecate ec2_vpc module (#20344)
* Deprecate ec2_vpc module The deprecation of ec2_vpc module has been discussed for 2 years and is causing duplication of effort as changes are implemented for ec2_vpc rather than for the newer alternatives * Improve module deprecation documentation Update the developing modules documentation with the latest instructions on how to deprecate a module.
This commit is contained in:
parent
acdab18ccd
commit
75a7ebe900
3 changed files with 14 additions and 2 deletions
|
@ -869,6 +869,13 @@ Deprecating and making module aliases
|
|||
Starting in 1.8, you can deprecate modules by renaming them with a preceding _, i.e. old_cloud.py to
|
||||
_old_cloud.py. This keeps the module available, but hides it from the primary docs and listing.
|
||||
|
||||
When deprecating a module, set the `ANSIBLE_METADATA` `status` to `deprecated`.
|
||||
In the `DOCUMENTATION` section, add a `deprecated` field along the lines of::
|
||||
|
||||
deprecated: Deprecated in 2.3. Use M(whatmoduletouseinstead) instead.
|
||||
|
||||
Add the deprecation to CHANGELOG.md
|
||||
|
||||
You can also rename modules and keep an 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::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue