From f6603d552eda69cb5e318234000d27ed1bd4baac Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Wed, 20 Dec 2023 08:19:43 +0100 Subject: [PATCH] [stable-8] using timeout parameter within community.general.mail module (#7731) (#7752) using timeout parameter within community.general.mail module (#7731) * using timeout parameter within community.general.mail module * consolidated time-out example within an existing playbook * consolidated time-out example within an existing playbook * Update plugins/modules/mail.py Co-authored-by: Felix Fontein --------- Co-authored-by: Felix Fontein (cherry picked from commit 916f6f7c878bbf093f3d118a212985105597e317) Co-authored-by: Aditya Putta --- plugins/modules/mail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/modules/mail.py b/plugins/modules/mail.py index 825b82c135..13f7c5becd 100644 --- a/plugins/modules/mail.py +++ b/plugins/modules/mail.py @@ -205,10 +205,11 @@ EXAMPLES = r''' body: System {{ ansible_hostname }} has been successfully provisioned. secure: starttls -- name: Sending an e-mail using StartTLS, remote server, custom EHLO +- name: Sending an e-mail using StartTLS, remote server, custom EHLO, and timeout of 10 seconds community.general.mail: host: some.smtp.host.tld port: 25 + timeout: 10 ehlohost: my-resolvable-hostname.tld to: John Smith subject: Ansible-report