summaryrefslogtreecommitdiff
path: root/notification/mail.py
diff options
context:
space:
mode:
authordhutty <dhutty@users.noreply.github.com>2015-05-12 12:43:33 -0400
committerdhutty <dhutty@users.noreply.github.com>2015-05-12 12:43:33 -0400
commit33b845a14f8b72ee5f84c9de13727922b7cd022c (patch)
treef1948871b713c699371bb0f904ac787aa1ef7638 /notification/mail.py
parentab0e131586615eebaa075bba1f75e81b415ba12c (diff)
downloadansible-modules-extras-33b845a14f8b72ee5f84c9de13727922b7cd022c.tar.gz
Additional example, not using local_action
Diffstat (limited to 'notification/mail.py')
-rw-r--r--notification/mail.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/notification/mail.py b/notification/mail.py
index ae33c5ca..6dc3da53 100644
--- a/notification/mail.py
+++ b/notification/mail.py
@@ -138,6 +138,13 @@ EXAMPLES = '''
attach="/etc/group /tmp/pavatar2.png"
headers=Reply-To=john@example.com|X-Special="Something or other"
charset=utf8
+# Sending an e-mail using the remote machine, not the Ansible controller node
+- mail:
+ host='localhost'
+ port=25
+ to="John Smith <john.smith@example.com>"
+ subject='Ansible-report'
+ body='System {{ ansible_hostname }} has been successfully provisioned.'
'''
import os