added setting of aptproxy

var apt.proxy, only deployed if set in host/groupvars
This commit is contained in:
Moritz Holtz 2019-07-19 20:12:23 +02:00
parent 9f1729ceee
commit f4657b324c
2 changed files with 8 additions and 0 deletions

View file

@ -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 }}"