Class: Ansible::Ruby::Modules::Cronvar
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Cronvar
- Defined in:
- lib/ansible/ruby/modules/generated/system/cronvar.rb
Overview
Use this module to manage crontab variables. This module allows you to create, update, or delete cron variable definitions.
Instance Method Summary collapse
-
#backup ⇒ :yes, ...
If set, create a backup of the crontab before it is modified.
-
#cron_file ⇒ String?
If specified, uses this file instead of an individual user’s crontab.
-
#insertafter ⇒ Object?
If specified, the variable will be inserted after the variable specified.,Used with C(state=present).
-
#insertbefore ⇒ Object?
Used with C(state=present).
-
#name ⇒ String
Name of the crontab variable.
-
#state ⇒ :absent, ...
Whether to ensure that the variable is present or absent.
-
#user ⇒ String?
The specific user whose crontab should be modified.
-
#value ⇒ String?
The value to set this variable to.,Required if C(state=present).
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#backup ⇒ :yes, ...
Returns If set, create a backup of the crontab before it is modified. The location of the backup is returned in the C(backup) variable by this module.
38 |
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 38 attribute :backup |
#cron_file ⇒ String?
Returns If specified, uses this file instead of an individual user’s crontab. Without a leading /, this is assumed to be in /etc/cron.d. With a leading /, this is taken as absolute.
34 |
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 34 attribute :cron_file |
#insertafter ⇒ Object?
Returns If specified, the variable will be inserted after the variable specified.,Used with C(state=present).
20 |
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 20 attribute :insertafter |
#insertbefore ⇒ Object?
Returns Used with C(state=present). If specified, the variable will be inserted just before the variable specified.
23 |
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 23 attribute :insertbefore |
#name ⇒ String
Returns Name of the crontab variable.
12 |
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 12 attribute :name |
#state ⇒ :absent, ...
Returns Whether to ensure that the variable is present or absent.
26 |
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 26 attribute :state |
#user ⇒ String?
Returns The specific user whose crontab should be modified.
30 |
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 30 attribute :user |
#value ⇒ String?
Returns The value to set this variable to.,Required if C(state=present).
16 |
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 16 attribute :value |