Class: Ansible::Ruby::Modules::Cronvar

Inherits:
Base show all
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

Methods inherited from Base

#ansible_name, #to_h

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.

Returns:

  • (:yes, :no, nil)

    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_fileString?

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.

Returns:

  • (String, nil)

    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

#insertafterObject?

Returns If specified, the variable will be inserted after the variable specified.,Used with C(state=present).

Returns:

  • (Object, nil)

    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

#insertbeforeObject?

Returns Used with C(state=present). If specified, the variable will be inserted just before the variable specified.

Returns:

  • (Object, nil)

    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

#nameString

Returns Name of the crontab variable.

Returns:

  • (String)

    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.

Returns:

  • (:absent, :present, nil)

    Whether to ensure that the variable is present or absent.



26
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 26

attribute :state

#userString?

Returns The specific user whose crontab should be modified.

Returns:

  • (String, nil)

    The specific user whose crontab should be modified.



30
# File 'lib/ansible/ruby/modules/generated/system/cronvar.rb', line 30

attribute :user

#valueString?

Returns The value to set this variable to.,Required if C(state=present).

Returns:

  • (String, nil)

    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