Skip to content

Commit 7a31417

Browse files
Merge branch 'main' into dependabot/github_actions/actions/setup-python-5
2 parents 4e89482 + a4c4776 commit 7a31417

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: defaults/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
windows_autologon_password: vagrant

Diff for: tasks/Windows.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
state: present
66
become: true
77

8-
- name: "Enable autologon for vagrant"
9-
ansible.windows.win_command: "C:\\ProgramData\\chocolatey\\bin\\Autologon.exe vagrant . vagrant"
8+
- name: Enable autologon for vagrant
9+
ansible.windows.win_command: powershell.exe Start-Process -FilePath "C:\\ProgramData\\chocolatey\\bin\\Autologon.exe" -ArgumentList '"/accepteula" vagrant . {{ windows_autologon_password }}'
1010

1111
- name: Disable screen saver
1212
ansible.windows.win_shell: Set-ItemProperty "HKCU:\Control Panel\Desktop" -Name ScreenSaveActive -Value 0 -Type DWord

0 commit comments

Comments
 (0)