mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
parent
2f33c1a1a1
commit
5553b20828
206 changed files with 1853 additions and 1870 deletions
|
@ -32,11 +32,11 @@ from ansible.plugins.callback import CallbackBase
|
|||
def mail(subject='Ansible error mail', sender=None, to=None, cc=None, bcc=None, body=None, smtphost=None):
|
||||
|
||||
if sender is None:
|
||||
sender='<root>'
|
||||
sender = '<root>'
|
||||
if to is None:
|
||||
to='root'
|
||||
to = 'root'
|
||||
if smtphost is None:
|
||||
smtphost=os.getenv('SMTPHOST', 'localhost')
|
||||
smtphost = os.getenv('SMTPHOST', 'localhost')
|
||||
|
||||
if body is None:
|
||||
body = subject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue