Hi@akhtar,
You can find one module in Ansible named mail. This module has the capability to send mail to the user in Ansible. I have attached one playbook below for your reference.
- hosts: localhost
tasks:
- name: Sending an e-mail using Gmail SMTP servers
mail:
host: smtp.gmail.com
port: 587
username: xyz.na@gmail.com
password: mypass
to: abc.na@gmail.com
subject: Ansible-report
body: System {{ ansible_hostname }} has been successfully provisioned.