Class: Ansible::Ruby::Modules::Sysctl
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Sysctl
- 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
-
#ignoreerrors ⇒ :yes, ...
Use this option to ignore errors about unknown keys.
-
#name ⇒ String
The dot-separated path (aka I(key)) specifying the sysctl variable.
-
#reload ⇒ :yes, ...
If C(yes), performs a I(/sbin/sysctl -p) if the C(sysctl_file) is updated.
-
#state ⇒ :present, ...
Whether the entry should be present or absent in the sysctl file.
-
#sysctl_file ⇒ String?
Specifies the absolute path to C(sysctl.conf), if not C(/etc/sysctl.conf).
-
#sysctl_set ⇒ :yes, ...
Verify token value with the sysctl command and set with -w if necessary.
-
#value ⇒ Integer?
Desired value of the sysctl key.
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
#ignoreerrors ⇒ :yes, ...
Returns Use this option to ignore errors about unknown keys.
24 |
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 24 attribute :ignoreerrors |
#name ⇒ String
Returns 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.
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.
20 |
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 20 attribute :state |
#sysctl_file ⇒ String?
Returns 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.
36 |
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 36 attribute :sysctl_set |
#value ⇒ Integer?
Returns Desired value of the sysctl key.
16 |
# File 'lib/ansible/ruby/modules/generated/system/sysctl.rb', line 16 attribute :value |