2024-09-24 10:27:24 +00:00
|
|
|
- name: Send mail using own SMTP server
|
2024-05-24 11:37:16 +00:00
|
|
|
community.general.mail:
|
2024-09-24 10:27:24 +00:00
|
|
|
host: "{{ smtp_server }}"
|
2024-05-24 11:37:16 +00:00
|
|
|
port: 465
|
2024-09-24 10:27:24 +00:00
|
|
|
username: "{{ awx_email }}"
|
2024-09-24 07:38:05 +00:00
|
|
|
password: "{{ awx_smtp_password }}"
|
2024-09-24 08:25:40 +00:00
|
|
|
to: "{{ sysadmin_mail }}"
|
2024-09-24 10:27:24 +00:00
|
|
|
subject: Ansible test
|
|
|
|
body: System {{ ansible_fqdn }} has sent the email successfully.
|
2024-05-24 11:37:16 +00:00
|
|
|
delegate_to: localhost
|