Class: Ansible::Ruby::Modules::Sysctl
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Sysctl
- Defined in:
- lib/ansible/ruby/modules/generated/core/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 ⇒ Boolean?
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 ⇒ Boolean?
Verify token value with the sysctl command and set with -w if necessary.
-
#value ⇒ String?
Desired value of the sysctl key.
Methods inherited from Base
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
#ignoreerrors ⇒ Boolean?
Returns Use this option to ignore errors about unknown keys.
23 |
# File 'lib/ansible/ruby/modules/generated/core/system/sysctl.rb', line 23 attribute :ignoreerrors |
#name ⇒ String
Returns The dot-separated path (aka I(key)) specifying the sysctl variable.
11 |
# File 'lib/ansible/ruby/modules/generated/core/system/sysctl.rb', line 11 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.
27 |
# File 'lib/ansible/ruby/modules/generated/core/system/sysctl.rb', line 27 attribute :reload |
#state ⇒ :present, ...
Returns Whether the entry should be present or absent in the sysctl file.
19 |
# File 'lib/ansible/ruby/modules/generated/core/system/sysctl.rb', line 19 attribute :state |
#sysctl_file ⇒ String?
Returns Specifies the absolute path to C(sysctl.conf), if not C(/etc/sysctl.conf).
31 |
# File 'lib/ansible/ruby/modules/generated/core/system/sysctl.rb', line 31 attribute :sysctl_file |
#sysctl_set ⇒ Boolean?
Returns Verify token value with the sysctl command and set with -w if necessary.
35 |
# File 'lib/ansible/ruby/modules/generated/core/system/sysctl.rb', line 35 attribute :sysctl_set |
#value ⇒ String?
Returns Desired value of the sysctl key.
15 |
# File 'lib/ansible/ruby/modules/generated/core/system/sysctl.rb', line 15 attribute :value |