The collection name used in ansible/ansible is ansible.builtin.
- Module/plugin deprecation:
deprecatedentry inDOCUMENTATIONwith:why,alternative(required)- either
removed_in: <version>orremoved_at_date: <date> - (
removed_from_collectionis automatically inserted if not present)
deprecationentry inmeta/runtime.ymlwith:warning_text(optional)- either
removal_version: <version>orremoval_date: <date>
- Plugin option deprecation in
DOCUMENTATION(for option itself, forinientry, forvarsentry, forenventry)why(required)alternatives(optional)- either
version: <version>ordate: <date> - (
collection_nameis automatically inserted if not present)
- Module argument spec option deprecation:
- either
removed_in_version="<version>"orremoved_at_date="<date>" removed_from_collection="<namespace.name>"(required)
- either
- Module argument spec alias deprecation:
name="<alias>"(required)collection_name="<namespace.name>"(required)- either
version="<version>"ordate="<date>"
Display.deprecated()andAnsibleModule.deprecate()calls- first positional argument
msg(required) - either
version="<version>"ordate="<date>" collection_name="<namespace.name>"(required)
- first positional argument
Update: the field in top-level
deprecatedis calledremoved_from_collection, notcollection_name. (It is auto-inserted, so this should affect anyone.)