mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 14:07:21 +00:00
Change for new password input method
This commit is contained in:
1 parent
7ba59fa98b
commit
c5ab7f7772
3 files changed
+7
-26
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user