Class: Ansible::Ruby::Modules::Mail

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/notification/mail.rb

Overview

This module is useful for sending emails from playbooks. One may wonder why automate sending emails? In complex environments there are from time to time processes that cannot be automated, either because you lack the authority to make it so, or because not everyone agrees to a common approach. If you cannot automate a specific step, but the step is non-blocking, sending out an email to the responsible party to make them perform their part of the bargain is an elegant way to put the responsibility in someone else’s lap. Of course sending out a mail can be equally useful as a way to notify one or more people in a team that a specific action has been (successfully) taken.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#attachObject?



54
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 54

attribute :attach

#bccObject?



27
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 27

attribute :bcc

#bodyString?



34
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 34

attribute :body

#ccString?



23
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 23

attribute :cc

#charsetString?



60
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 60

attribute :charset

#fromString?



15
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 15

attribute :from

#headersObject?



57
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 57

attribute :headers

#hostString?



46
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 46

attribute :host

#passwordString?



42
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 42

attribute :password

#portInteger?



50
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 50

attribute :port

#secure:always, ...



68
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 68

attribute :secure

#subjectString



30
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 30

attribute :subject

#subtype:html, ...



64
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 64

attribute :subtype

#timeoutInteger?



72
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 72

attribute :timeout

#toString?



19
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 19

attribute :to

#usernameString?



38
# File 'lib/ansible/ruby/modules/generated/notification/mail.rb', line 38

attribute :username