mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-30 23:40:15 +00:00
set proxy after reboot and add forced reboot step
This commit is contained in:
1 parent
e7509a5689
commit
1db1da5577
1 file changed
+14
-12
@@ -28,22 +28,12 @@
|
|||||||
start_mode: delayed
|
start_mode: delayed
|
||||||
tags: winrm_delayed
|
tags: winrm_delayed
|
||||||
|
|
||||||
- name: Set a proxy
|
- name: Reboot VMs before continuing
|
||||||
vars:
|
win_reboot:
|
||||||
proxy_ip: "{{ os_project }}-{{ win_project }}-proxy"
|
|
||||||
tags: proxy
|
|
||||||
win_inet_proxy:
|
|
||||||
proxy: "{{ hostvars[proxy_ip].ansible_host }}:3128"
|
|
||||||
bypass:
|
|
||||||
- <local>
|
|
||||||
when: |
|
|
||||||
inventory_hostname in groups['meta-type_client']|default([]) and
|
|
||||||
project_zone == 'protected'
|
|
||||||
|
|
||||||
- name: Remove Local Admin
|
- name: Remove Local Admin
|
||||||
tags:
|
tags:
|
||||||
- remove_admin
|
- remove_admin
|
||||||
- never
|
|
||||||
block:
|
block:
|
||||||
- name: Delete admin user account
|
- name: Delete admin user account
|
||||||
win_user:
|
win_user:
|
||||||
@@ -63,6 +53,18 @@
|
|||||||
path: "C:\\Users\\Admin"
|
path: "C:\\Users\\Admin"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
- name: Set a proxy
|
||||||
|
vars:
|
||||||
|
proxy_ip: "{{ os_project }}-{{ win_project }}-proxy"
|
||||||
|
tags: proxy
|
||||||
|
win_inet_proxy:
|
||||||
|
proxy: "{{ hostvars[proxy_ip].ansible_host }}:3128"
|
||||||
|
bypass:
|
||||||
|
- <local>
|
||||||
|
when: |
|
||||||
|
inventory_hostname in groups['meta-type_client']|default([]) and
|
||||||
|
project_zone == 'protected'
|
||||||
|
|
||||||
- name: Create EIDF directory in system drive
|
- name: Create EIDF directory in system drive
|
||||||
win_file:
|
win_file:
|
||||||
path: "C:\\eidf"
|
path: "C:\\eidf"
|
||||||
|
|||||||
Reference in new issue
Block a user