|
|
@ -18,7 +18,7 @@
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
|
|
DOCUMENTATION = '''
|
|
|
|
DOCUMENTATION = """
|
|
|
|
---
|
|
|
|
---
|
|
|
|
author: Dag Wieers
|
|
|
|
author: Dag Wieers
|
|
|
|
module: email
|
|
|
|
module: email
|
|
|
@ -72,7 +72,7 @@ options:
|
|
|
|
examples:
|
|
|
|
examples:
|
|
|
|
- description: "Example playbook sending mail to root"
|
|
|
|
- description: "Example playbook sending mail to root"
|
|
|
|
code: local_action: mail msg="System ${ansible_hostname} has been sucessfully provisioned."
|
|
|
|
code: local_action: mail msg="System ${ansible_hostname} has been sucessfully provisioned."
|
|
|
|
'''
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
import smtplib
|
|
|
|
import smtplib
|
|
|
|
|
|
|
|
|
|
|
|