Commit 5b0905e6 authored by Ioannis Tsafaras's avatar Ioannis Tsafaras
Browse files

Configure apt proxy for slaves

parent beb5dd4e
......@@ -18,6 +18,16 @@
tags:
- common-configure
- name: Configure apt proxy
lineinfile: destfile="/etc/apt/apt.conf" regexp="^Acquire::http::Proxy"
line='Acquire::http::Proxy "{{ proxy_env['http_proxy'] }}";'
insertafter=EOF
state=present
create=yes
when: "'slaves' in group_names"
tags:
- image-configure
- name: Upgrade packages.
apt: upgrade=dist update_cache=yes
environment: proxy_env
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment