vn-ansible/roles/send-mail/tasks/main.yml

11 lines
344 B
YAML
Raw Normal View History

2024-09-23 14:34:09 +00:00
- name: Send mail using Verdnatura SMTP servers
2024-05-24 11:37:16 +00:00
community.general.mail:
host: smtp.verdnatura.es
port: 465
username: awx@verdnatura.es
password: "{{ awx_smtp_password }}"
2024-05-24 11:37:16 +00:00
to: sysadmin@verdnatura.es
subject: Ansible-test
body: System {{ ansible_hostname }} has been send successfully mail.
delegate_to: localhost