Change for new password input method

This commit is contained in:
abrown38 committed 2025-03-20 12:24:18 +00:00
1 parent 7ba59fa98b
commit c5ab7f7772
3 files changed
+7 -26

No files matched your search

+5 -24
View File
@@ -1,28 +1,13 @@
---
- name: Password
- name: wait for connention to VM
ansible.builtin.wait_for_connection:
delay: 10
timeout: 600
any_errors_fatal: true
tags:
- password
- password_check
- always
block:
- name: Check for pending password status
set_fact:
ansible_password: "{{ vm_initial_password }}"
run_once: true
when: password_status == 'pending' or
password_status == 'change'
- name: Check for finished or change password status
set_fact:
ansible_password: "{{ vm_password }}"
run_once: true
when: password_status == 'finished'
- name: wait for connention to VM
ansible.builtin.wait_for_connection:
delay: 10
timeout: 600
any_errors_fatal: true
- name: Set WinRM to delayed startup
ansible.windows.win_service:
@@ -30,10 +15,6 @@
start_mode: delayed
tags: winrm_delayed
- name: Reboot VMs before continuing
win_reboot:
tags: never
- name: Remove Local Admin
tags:
- remove_admin