Class: Ansible::Ruby::Modules::Sysctl

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

Overview

This module manipulates sysctl entries and optionally performs a C(/sbin/sysctl -p) after changing them.

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

#ignoreerrors:yes, ...

Returns Use this option to ignore errors about unknown keys.

Returns:

  • (:yes, :no, nil)

    Use this option to ignore errors about unknown keys.



24
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 24

attribute :ignoreerrors

#nameString

Returns The dot-separated path (aka I(key)) specifying the sysctl variable.

Returns:

  • (String)

    The dot-separated path (aka I(key)) specifying the sysctl variable.



12
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 12

attribute :name

#reload:yes, ...

Returns If C(yes), performs a I(/sbin/sysctl -p) if the C(sysctl_file) is updated. If C(no), does not reload I(sysctl) even if the C(sysctl_file) is updated.

Returns:

  • (:yes, :no, nil)

    If C(yes), performs a I(/sbin/sysctl -p) if the C(sysctl_file) is updated. If C(no), does not reload I(sysctl) even if the C(sysctl_file) is updated.



28
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 28

attribute :reload

#state:present, ...

Returns Whether the entry should be present or absent in the sysctl file.

Returns:

  • (:present, :absent, nil)

    Whether the entry should be present or absent in the sysctl file.



20
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 20

attribute :state

#sysctl_fileString?

Returns Specifies the absolute path to C(sysctl.conf), if not C(/etc/sysctl.conf).

Returns:

  • (String, nil)

    Specifies the absolute path to C(sysctl.conf), if not C(/etc/sysctl.conf).



32
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 32

attribute :sysctl_file

#sysctl_set:yes, ...

Returns Verify token value with the sysctl command and set with -w if necessary.

Returns:

  • (:yes, :no, nil)

    Verify token value with the sysctl command and set with -w if necessary



36
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 36

attribute :sysctl_set

#valueInteger?

Returns Desired value of the sysctl key.

Returns:

  • (Integer, nil)

    Desired value of the sysctl key.



16
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 16

attribute :value