added setting of aptproxy
var apt.proxy, only deployed if set in host/groupvars
This commit is contained in:
parent
9f1729ceee
commit
f4657b324c
2 changed files with 8 additions and 0 deletions
|
|
@ -13,6 +13,12 @@
|
|||
- name: install apt-transport-https
|
||||
apt: pkg=apt-transport-https
|
||||
|
||||
- name: setup apt proxy
|
||||
template:
|
||||
src: 50proxy.j2
|
||||
dest: /etc/apt/apt.conf.d/50proxy
|
||||
when: apt.proxy is defined
|
||||
|
||||
- name: setup repositories
|
||||
include_tasks: repo.yml
|
||||
with_items: "{{ packages.repos }}"
|
||||
|
|
|
|||
2
templates/50proxy.j2
Normal file
2
templates/50proxy.j2
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Acquire::http::Proxy "http://{{ apt.proxy }}";
|
||||
Acquire::https::Proxy "https://{{ apt.proxy }}";
|
||||
Loading…
Add table
Add a link
Reference in a new issue