From 370fa9814a065e3407a51d3b49073748e1f4a362 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 20 Dec 2023 08:19:49 +0100 Subject: [PATCH] [PR #7731/916f6f7c backport][stable-7] using timeout parameter within community.general.mail module (#7751) 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