mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Additional example, not using local_action
This commit is contained in:
@@ -138,6 +138,13 @@ EXAMPLES = '''
|
|||||||
attach="/etc/group /tmp/pavatar2.png"
|
attach="/etc/group /tmp/pavatar2.png"
|
||||||
headers=Reply-To=john@example.com|X-Special="Something or other"
|
headers=Reply-To=john@example.com|X-Special="Something or other"
|
||||||
charset=utf8
|
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
|
import os
|
||||||
|
|||||||
Reference in New Issue
Block a user