Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ notify_message: "[{{inventory_hostname}}] has been updated by {{ansible_ssh_user
notify_mail_to: ""
notify_mail_cc: ""
notify_mail_from: ansible@{{inventory_hostname}}
notify_mail_username: ""
notify_mail_password: ""
notify_mail_host: localhost
notify_mail_port: 25
notify_mail_attach: ""
Expand Down
2 changes: 2 additions & 0 deletions tasks/mail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
- name: Send email notify
mail:
to="{{notify_mail_to}}"
username="{{notify_mail_username}}"
password="{{notify_mail_password}}"
host="{{notify_mail_host}}"
port="{{notify_mail_port}}"
subject="{{notify_message}}"
Expand Down