Skip to content

Instantly share code, notes, and snippets.

@IPvSean
Created March 30, 2021 13:49
Show Gist options
  • Save IPvSean/cb3c5c6074ac161e7b55b9c00336a176 to your computer and use it in GitHub Desktop.
Save IPvSean/cb3c5c6074ac161e7b55b9c00336a176 to your computer and use it in GitHub Desktop.
- 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