mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-03 08:52:55 +00:00
Prepare main for 13.0.0 (#11834)
* Bump version to 13.0.0. * Remove deprecated modules and plugins. * Remove deprecated module utils. * Remove leftovers. * Remove mode=compatibility. * Change default of is_pre740 from true to false. * Change default of force_defaults from true to false. * Remove support for ubuntu_legacy mechanism. * Remove cpanm compatibility tests.
This commit is contained in:
parent
7ce198f0e7
commit
72c13c85ad
62 changed files with 104 additions and 13052 deletions
|
|
@ -101,9 +101,10 @@ options:
|
|||
description:
|
||||
- If V(true), the payload matches Rocket.Chat prior to 7.4.0 format. This format has been used by the module since its
|
||||
inception, but is no longer supported by Rocket.Chat 7.4.0.
|
||||
- The default value of the option, V(true), is B(deprecated) since community.general 11.2.0 and will change to V(false) in community.general 13.0.0.
|
||||
- The default value changed from V(true) to V(false) in community.general 13.0.0.
|
||||
- This parameter is going to be removed in a future release when Rocket.Chat 7.4.0 becomes the minimum supported version.
|
||||
type: bool
|
||||
default: false
|
||||
version_added: 10.5.0
|
||||
"""
|
||||
|
||||
|
|
@ -229,7 +230,7 @@ def main():
|
|||
validate_certs=dict(default=True, type="bool"),
|
||||
color=dict(type="str", default="normal", choices=["normal", "good", "warning", "danger"]),
|
||||
attachments=dict(type="list", elements="dict"),
|
||||
is_pre740=dict(type="bool"),
|
||||
is_pre740=dict(type="bool", default=False),
|
||||
)
|
||||
)
|
||||
|
||||
|
|
@ -246,15 +247,6 @@ def main():
|
|||
attachments = module.params["attachments"]
|
||||
is_pre740 = module.params["is_pre740"]
|
||||
|
||||
if is_pre740 is None:
|
||||
module.deprecate(
|
||||
"The default value 'true' for 'is_pre740' is deprecated and will change to 'false' in community.general 13.0.0."
|
||||
" You can explicitly set 'is_pre740' in your task to avoid this deprecation warning",
|
||||
version="13.0.0",
|
||||
collection_name="community.general",
|
||||
)
|
||||
is_pre740 = True
|
||||
|
||||
payload = build_payload_for_rocketchat(
|
||||
module, text, channel, username, icon_url, icon_emoji, link_names, color, attachments, is_pre740
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue