comment email task

This commit is contained in:
willtome
2022-03-23 17:18:58 -04:00
parent 1b965d7191
commit 5865211b5f

View File

@@ -22,17 +22,17 @@
ansible.builtin.debug: ansible.builtin.debug:
msg: "Please go to http://{{ ansible_host }}/linuxpatch.html" msg: "Please go to http://{{ ansible_host }}/linuxpatch.html"
- name: Send Report via E-mail #- name: Send Report via E-mail
community.general.mail: # community.general.mail:
host: "{{ EMAIL_HOST }}" # host: "{{ EMAIL_HOST }}"
username: "{{ EMAIL_USERNAME }}" # username: "{{ EMAIL_USERNAME }}"
password: "{{ EMAIL_PASSWORD }}" # password: "{{ EMAIL_PASSWORD }}"
port: "{{ EMAIL_PORT }}" # port: "{{ EMAIL_PORT }}"
subject: "Linux Patching Report" # subject: "Linux Patching Report"
body: "{{ lookup('template', 'report.j2') }}" # body: "{{ lookup('template', 'report.j2') }}"
from: "{{ EMAIL_FROM }}" # from: "{{ EMAIL_FROM }}"
to: "{{ EMAIL_TO }}" # to: "{{ EMAIL_TO }}"
subtype: html # subtype: html
delegate_to: localhost # delegate_to: localhost
become: false # become: false
check_mode: no # check_mode: no