comment email task
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user