diff options
author | dhutty <dhutty@users.noreply.github.com> | 2015-05-12 12:43:33 -0400 |
---|---|---|
committer | dhutty <dhutty@users.noreply.github.com> | 2015-05-12 12:43:33 -0400 |
commit | 33b845a14f8b72ee5f84c9de13727922b7cd022c (patch) | |
tree | f1948871b713c699371bb0f904ac787aa1ef7638 /notification/mail.py | |
parent | ab0e131586615eebaa075bba1f75e81b415ba12c (diff) | |
download | ansible-modules-extras-33b845a14f8b72ee5f84c9de13727922b7cd022c.tar.gz |
Additional example, not using local_action
Diffstat (limited to 'notification/mail.py')
-rw-r--r-- | notification/mail.py | 7 |
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 |