WIP3
This commit is contained in:
20
roles/oatakan.windows_template_build/tasks/policy.yml
Normal file
20
roles/oatakan.windows_template_build/tasks/policy.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
# do not enable this by default
|
||||
- name: allow unauthenticated guest access
|
||||
win_regedit:
|
||||
path: HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
|
||||
name: AllowInsecureGuestAuth
|
||||
data: 1
|
||||
type: dword
|
||||
when: policy.allow_unauthenticated_guest_access|bool
|
||||
|
||||
- name: set connection profile to private
|
||||
win_shell: Set-NetConnectionProfile -NetworkCategory Private
|
||||
when:
|
||||
- "'Windows 10' in ansible_distribution"
|
||||
|
||||
- name: Ensure local account password doesn't expire
|
||||
win_user:
|
||||
name: "{{ ansible_user }}"
|
||||
password_never_expires: yes
|
||||
Reference in New Issue
Block a user