mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-31 00:40:15 +00:00
set proxy on client
This commit is contained in:
1 parent
3a7fc1ddb5
commit
020c07315c
1 file changed
+13
-1
@@ -9,7 +9,7 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
ansible_password: "{{ vm_initial_password }}"
|
ansible_password: "{{ vm_initial_password }}"
|
||||||
run_once: true
|
run_once: true
|
||||||
when: password_status == 'pending'or
|
when: password_status == 'pending' or
|
||||||
password_status == 'change'
|
password_status == 'change'
|
||||||
|
|
||||||
- name: Check for finished or change password status
|
- name: Check for finished or change password status
|
||||||
@@ -27,6 +27,18 @@
|
|||||||
start_mode: delayed
|
start_mode: delayed
|
||||||
tags: winrm_delayed
|
tags: winrm_delayed
|
||||||
|
|
||||||
|
- 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'] and
|
||||||
|
project_zone == 'protected'
|
||||||
|
|
||||||
- name: Remove Local Admin
|
- name: Remove Local Admin
|
||||||
tags: remove_admin
|
tags: remove_admin
|
||||||
block:
|
block:
|
||||||
|
|||||||
Reference in new issue
Block a user