Set http_proxy environment in localproxy role
This commit is contained in:
parent
6c8d1b1f28
commit
a4e2f22def
2 changed files with 10 additions and 11 deletions
|
@ -36,3 +36,13 @@
|
|||
name: usersquid.service
|
||||
scope: global
|
||||
enabled: true
|
||||
|
||||
- name: Deploy http proxy config
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/environment.d/10-lmn-proxy.conf
|
||||
mode: '0644'
|
||||
content: |
|
||||
http_proxy="http://localhost:3128"
|
||||
https_proxy="http://localhost:3128"
|
||||
ftp_proxy="http://localhost:3128"
|
||||
no_proxy="{{ no_proxy }}"
|
||||
|
|
|
@ -1,15 +1,4 @@
|
|||
---
|
||||
- name: Deploy http proxy config
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/environment.d/10-lmn-proxy.conf
|
||||
mode: '0644'
|
||||
content: |
|
||||
http_proxy="{{ proxy }}"
|
||||
https_proxy="{{ proxy }}"
|
||||
ftp_proxy="{{ proxy }}"
|
||||
no_proxy="{{ no_proxy }}"
|
||||
when: "'teacherlaptop' not in group_names"
|
||||
|
||||
- name: Set aptcache
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/apt/apt.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue