mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 15:47:32 +02:00
Update to 2022-02-09 17:00
This commit is contained in:
17
roles/system_proxy/tasks/Debian.yml
Normal file
17
roles/system_proxy/tasks/Debian.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
|
||||
- name: Config proxy for apt
|
||||
copy:
|
||||
content: |
|
||||
Acquire::http::Proxy "{{ system_proxy }}";
|
||||
Acquire::https::Proxy "{{ system_proxy }}";
|
||||
dest: /etc/apt/apt.conf.d/10proxy
|
||||
when:
|
||||
- system_proxy is defined
|
||||
- system_proxy != ''
|
||||
tags: proxy
|
||||
|
||||
- name: Remove proxy from apt config
|
||||
file: path=/etc/apt/apt.conf.d/10proxy state=absent
|
||||
when: system_proxy is not defined or system_proxy == ''
|
||||
tags: proxy
|
Reference in New Issue
Block a user