mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 14:27:21 +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:
|
||||
ansible_password: "{{ vm_initial_password }}"
|
||||
run_once: true
|
||||
when: password_status == 'pending'or
|
||||
when: password_status == 'pending' or
|
||||
password_status == 'change'
|
||||
|
||||
- name: Check for finished or change password status
|
||||
@@ -27,6 +27,18 @@
|
||||
start_mode: 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
|
||||
tags: remove_admin
|
||||
block:
|
||||
|
||||
Reference in new issue
Block a user