From 8c39ca8ad06df4be4c508d4d0807a8825f0ede0c Mon Sep 17 00:00:00 2001 From: Jordan Layfield Date: Thu, 18 Jul 2024 12:41:51 +0100 Subject: [PATCH] update password for login TO-246 --- tasks/Windows.yml | 2 +- vars/Windows.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 vars/Windows.yml diff --git a/tasks/Windows.yml b/tasks/Windows.yml index f34751b..49623b6 100644 --- a/tasks/Windows.yml +++ b/tasks/Windows.yml @@ -6,7 +6,7 @@ become: true - name: "Enable autologon for vagrant" - ansible.windows.win_command: "C:\\ProgramData\\chocolatey\\bin\\Autologon.exe vagrant . vagrant" + ansible.windows.win_command: "C:\\ProgramData\\chocolatey\\bin\\Autologon.exe vagrant . {{ ansible_password }}" - name: Disable screen saver ansible.windows.win_shell: Set-ItemProperty "HKCU:\Control Panel\Desktop" -Name ScreenSaveActive -Value 0 -Type DWord diff --git a/vars/Windows.yml b/vars/Windows.yml new file mode 100644 index 0000000..6778226 --- /dev/null +++ b/vars/Windows.yml @@ -0,0 +1 @@ +ansible_password: vagrant \ No newline at end of file