Created
March 30, 2021 13:49
-
-
Save IPvSean/cb3c5c6074ac161e7b55b9c00336a176 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
vars_files: secure.yml | |
tasks: | |
- name: Sending an email using Ansible | |
mail: | |
host: smtp.gmail.com | |
port: 587 | |
username: 500069614@stu.upes.ac.in | |
password: "{{ p }}" | |
to: mrsarthak001@gmail.com | |
subject: Email By Ansible | |
body: Test successfull | |
delegate_to: localhost |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment