16 lines
563 B
YAML
16 lines
563 B
YAML
---
|
|
# roles/config-send-mail/tasks/main.yaml
|
|
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
- name: Sending an e-mail using Verdnatura SMTP servers
|
|
community.general.mail:
|
|
host: smtp.verdnatura.es
|
|
port: 465
|
|
username: awx@verdnatura.es
|
|
password: "{{ bindsecretawx_password }}"
|
|
to: sysadmin@verdnatura.es
|
|
subject: Ansible-test
|
|
body: System {{ ansible_hostname }} has been send successfully mail.
|
|
delegate_to: localhost
|
|
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|