Class: Ansible::Ruby::Modules::Cron

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/cron.rb

Overview

Use this module to manage crontab and environment variables entries. This module allows you to create environment variables and named crontab entries, update, or delete them. When crontab jobs are managed: the module includes one line with the description of the crontab entry C(“#Ansible: <name>”) corresponding to the “name” passed to the module, which is used by future ansible/module calls to find/check the state. The “name” parameter should be unique, and changing the “name” value will result in a new cron task being created (or a different one being removed). When environment variables are managed: no comment line is added, but, when the module needs to find/check the state, it uses the “name” parameter to find the environment variable definition line. When using symbols such as %, they must be properly escaped.

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

#backup:yes, ...



35
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 35

attribute :backup

#cron_fileString?



31
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 31

attribute :cron_file

#dayString?



47
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 47

attribute :day

#disabled:yes, ...



67
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 67

attribute :disabled

#env:yes, ...



71
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 71

attribute :env

#hourString?



43
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 43

attribute :hour

#insertafterString?



75
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 75

attribute :insertafter

#insertbeforeObject?



79
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 79

attribute :insertbefore

#jobString?



23
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 23

attribute :job

#minuteString?



39
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 39

attribute :minute

#monthString?



51
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 51

attribute :month

#nameString?



15
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 15

attribute :name

#reboot:yes, ...



59
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 59

attribute :reboot

#special_time:reboot, ...



63
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 63

attribute :special_time

#state:absent, ...



27
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 27

attribute :state

#userString?



19
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 19

attribute :user

#weekdayString?



55
# File 'lib/ansible/ruby/modules/generated/system/cron.rb', line 55

attribute :weekday