Class: Ansible::Ruby::Modules::Win_audit_rule
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Win_audit_rule
- Defined in:
- lib/ansible/ruby/modules/generated/windows/win_audit_rule.rb
Overview
Used to apply audit rules to files, folders or registry keys. Once applied, it will begin recording the user who performed the operation defined into the Security Log in the Event viewer. The behavior is designed to ignore inherited rules since those cannot be adjusted without first disabling the inheritance behavior. It will still print inherited rules in the output though for debugging purposes.
Instance Method Summary collapse
-
#audit_flags ⇒ :Failure, :Success
Defines whether to log on failure, success, or both.,To log both define as comma separated list “Success, Failure”.
-
#inheritance_flags ⇒ Array<String>, ...
Defines what objects inside of a folder or registry key will inherit the settings.,If you are setting a rule on a file, this value has to be changed to C(none).,For more information on the choices see MSDN PropagationFlags enumeration at U(msdn.microsoft.com/en-us/library/system.security.accesscontrol.inheritanceflags.aspx).
-
#path ⇒ String
Path to the file, folder, or registry key.,Registry paths should be in Powershell format, beginning with an abbreviation for the root such as, ‘hklm:software’.
-
#propagation_flags ⇒ :None, ...
Propagation flag on the audit rules.,This value is ignored when the path type is a file.,For more information on the choices see MSDN PropagationFlags enumeration at U(msdn.microsoft.com/en-us/library/system.security.accesscontrol.propagationflags.aspx).
-
#rights ⇒ Array<String>, String
Comma separated list of the rights desired.
-
#state ⇒ :absent, ...
Whether the rule should be C(present) or C(absent).,For absent, only I(path), I(user), and I(state) are required.,Specifying C(absent) will remove all rules matching the defined I(user).
-
#user ⇒ String
The user or group to adjust rules for.
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
#audit_flags ⇒ :Failure, :Success
34 |
# File 'lib/ansible/ruby/modules/generated/windows/win_audit_rule.rb', line 34 attribute :audit_flags |
#inheritance_flags ⇒ Array<String>, ...
26 |
# File 'lib/ansible/ruby/modules/generated/windows/win_audit_rule.rb', line 26 attribute :inheritance_flags |
#path ⇒ String
14 |
# File 'lib/ansible/ruby/modules/generated/windows/win_audit_rule.rb', line 14 attribute :path |
#propagation_flags ⇒ :None, ...
30 |
# File 'lib/ansible/ruby/modules/generated/windows/win_audit_rule.rb', line 30 attribute :propagation_flags |
#rights ⇒ Array<String>, String
22 |
# File 'lib/ansible/ruby/modules/generated/windows/win_audit_rule.rb', line 22 attribute :rights |
#state ⇒ :absent, ...
38 |
# File 'lib/ansible/ruby/modules/generated/windows/win_audit_rule.rb', line 38 attribute :state |
#user ⇒ String
18 |
# File 'lib/ansible/ruby/modules/generated/windows/win_audit_rule.rb', line 18 attribute :user |