11 lines
332 B
YAML
11 lines
332 B
YAML
- name: Send mail using own SMTP server
|
|
community.general.mail:
|
|
host: "{{ smtp_server }}"
|
|
port: 465
|
|
username: "{{ awx_email }}"
|
|
password: "{{ awx_smtp_password }}"
|
|
to: "{{ sysadmin_mail }}"
|
|
subject: Ansible test
|
|
body: System {{ ansible_fqdn }} has sent the email successfully.
|
|
delegate_to: localhost
|