adding delay for reboot
This commit is contained in:
parent
8662839ae1
commit
0d465c0bc7
3 changed files with 12 additions and 1 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 3026ccda415fd94d3d2450c9409829537d2e2a14
|
Subproject commit 27cf9f9b77e47ac7f14ac23961eafb09d4712df7
|
10
roles/win_warn_ansible_start/tasks/main.yml
Normal file
10
roles/win_warn_ansible_start/tasks/main.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
---
|
||||||
|
- name: Warn logged in users of impending upgrade
|
||||||
|
community.windows.win_msg:
|
||||||
|
display_seconds: 60
|
||||||
|
msg: Automated upgrade about to start. Please save your work and log off immeditially
|
||||||
|
|
||||||
|
- name: Ensure WinRM starts when the system has settled and is ready to work reliably
|
||||||
|
ansible.windows.win_service:
|
||||||
|
name: WinRM
|
||||||
|
start_mode: delayed
|
1
site.yml
1
site.yml
|
@ -2,6 +2,7 @@
|
||||||
- name: deploy windows users and basic config
|
- name: deploy windows users and basic config
|
||||||
hosts: obs
|
hosts: obs
|
||||||
roles:
|
roles:
|
||||||
|
- {role: win_warn_ansible_start, tags: [always, warn]}
|
||||||
- {role: do1jlr.win_base_setup, tags: [user, setup]}
|
- {role: do1jlr.win_base_setup, tags: [user, setup]}
|
||||||
- {role: do1jlr.win_obs_setup, tags: [user, obs]}
|
- {role: do1jlr.win_obs_setup, tags: [user, obs]}
|
||||||
- {role: do1jlr.win_remove_win_apps, tags: cleanup}
|
- {role: do1jlr.win_remove_win_apps, tags: cleanup}
|
||||||
|
|
Loading…
Reference in a new issue