Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix task order for lockout policy #16

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions tasks/section01.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,32 +113,34 @@
- rule_1.2.2
- automated
- account

# Speelman | added because of this error "Failed to import secedit.ini file from C:\\Users\\vagrant\\AppData\\Local\\Temp\\tmp81F3.tmp
- name: "1.2.1 | AUDIT | Ensure Account lockout duration is set to 15 or more minutes"

- name: "1.2.3 | PATCH | Ensure Reset account lockout counter after is set to 15 or more minutes"
ansible.builtin.win_security_policy:
section: System Access
key: LockoutDuration
value: "{{ win22cis_lockoutduration }}"
key: ResetLockoutCount
value: "{{ win22cis_resetlockoutcount }}"
when:
- rule_1_2_1
- rule_1_2_3
tags:
- level1-domaincontroller
- level1-memberserver
- rule_1.2.1
- rule_1.2.3
- automated
- account

- name: "1.2.3 | PATCH | Ensure Reset account lockout counter after is set to 15 or more minutes"

# Speelman | added because of this error "Failed to import secedit.ini file from C:\\Users\\vagrant\\AppData\\Local\\Temp\\tmp81F3.tmp
- name: "1.2.1 | AUDIT | Ensure Account lockout duration is set to 15 or more minutes"
ansible.builtin.win_security_policy:
section: System Access
key: ResetLockoutCount
value: "{{ win22cis_resetlockoutcount }}"
key: LockoutDuration
value: "{{ win22cis_lockoutduration }}"
when:
- rule_1_2_3
- rule_1_2_1
tags:
- level1-domaincontroller
- level1-memberserver
- rule_1.2.3
- rule_1.2.1
- automated
- account