mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 18:31:25 -07:00
10.0.0: remove deprecated features (#8918)
* Remove pool option from redhat_subscription. * Remove proxmox_default_behavior option from proxmox_kvm. * Remove the logging option from ejabberd_user. * Remove the ack_params_state_absent option from consul. * irc: change defaults of use_tls and validate_certs to true. * rhsm_repository: remove states present and absent. * Re-add 'using'. * Fix typo.
This commit is contained in:
parent
84e0190eee
commit
fe18b05f08
10 changed files with 29 additions and 368 deletions
|
@ -85,10 +85,9 @@ options:
|
|||
was exlusively called O(use_ssl). The latter is now an alias of O(use_tls).
|
||||
- B(Note:) for security reasons, you should always set O(use_tls=true) and
|
||||
O(validate_certs=true) whenever possible.
|
||||
- The option currently defaults to V(false). The default has been B(deprecated) and will
|
||||
change to V(true) in community.general 10.0.0. To avoid deprecation warnings, explicitly
|
||||
set this option to a value (preferably V(true)).
|
||||
- The default of this option changed to V(true) in community.general 10.0.0.
|
||||
type: bool
|
||||
default: true
|
||||
aliases:
|
||||
- use_ssl
|
||||
part:
|
||||
|
@ -110,10 +109,9 @@ options:
|
|||
if the network between between Ansible and the IRC server is known to be safe.
|
||||
- B(Note:) for security reasons, you should always set O(use_tls=true) and
|
||||
O(validate_certs=true) whenever possible.
|
||||
- The option currently defaults to V(false). The default has been B(deprecated) and will
|
||||
change to V(true) in community.general 10.0.0. To avoid deprecation warnings, explicitly
|
||||
set this option to a value (preferably V(true)).
|
||||
- The default of this option changed to V(true) in community.general 10.0.0.
|
||||
type: bool
|
||||
default: true
|
||||
version_added: 8.1.0
|
||||
|
||||
# informational: requirements for nodes
|
||||
|
@ -313,8 +311,8 @@ def main():
|
|||
passwd=dict(no_log=True),
|
||||
timeout=dict(type='int', default=30),
|
||||
part=dict(type='bool', default=True),
|
||||
use_tls=dict(type='bool', aliases=['use_ssl']),
|
||||
validate_certs=dict(type='bool'),
|
||||
use_tls=dict(type='bool', default=True, aliases=['use_ssl']),
|
||||
validate_certs=dict(type='bool', default=True),
|
||||
),
|
||||
supports_check_mode=True,
|
||||
required_one_of=[['channel', 'nick_to']]
|
||||
|
@ -338,25 +336,6 @@ def main():
|
|||
style = module.params["style"]
|
||||
validate_certs = module.params["validate_certs"]
|
||||
|
||||
if use_tls is None:
|
||||
module.deprecate(
|
||||
'The default of use_tls will change to true in community.general 10.0.0.'
|
||||
' Set a value now (preferably true, if possible) to avoid the deprecation warning.',
|
||||
version='10.0.0',
|
||||
collection_name='community.general',
|
||||
)
|
||||
use_tls = False
|
||||
|
||||
if validate_certs is None:
|
||||
if use_tls:
|
||||
module.deprecate(
|
||||
'The default of validate_certs will change to true in community.general 10.0.0.'
|
||||
' Set a value now (prefarably true, if possible) to avoid the deprecation warning.',
|
||||
version='10.0.0',
|
||||
collection_name='community.general',
|
||||
)
|
||||
validate_certs = False
|
||||
|
||||
try:
|
||||
send_msg(msg, server, port, channel, nick_to, key, topic, nick, color, passwd, timeout, use_tls, validate_certs, part, style)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue