Update to 2022-02-09 17:00

This commit is contained in:
Daniel Berteaud
2022-02-09 17:00:06 +01:00
parent 00b3d728c8
commit 6f6d3b7382
9 changed files with 75 additions and 74 deletions

View 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