Skip to content
Snippets Groups Projects
Commit 7b674e06 authored by Anton Patsev's avatar Anton Patsev Committed by Kubernetes Prow Robot
Browse files

Add proxy to /etc/apt/apt.conf for ubuntu (#3869)

parent 593a9a26
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,22 @@ ...@@ -19,6 +19,22 @@
tags: tags:
- facts - facts
- name: Add proxy to /etc/apt/apt.conf if http_proxy is defined
lineinfile:
path: "/etc/apt/apt.conf"
line: 'Acquire::http::proxy "{{http_proxy}}";'
create: yes
state: present
when: http_proxy is defined
- name: Add proxy to /etc/apt/apt.conf if https_proxy is defined
lineinfile:
path: "/etc/apt/apt.conf"
line: 'Acquire::https::proxy "{{https_proxy}}";'
create: yes
state: present
when: https_proxy is defined
- name: Bootstrap | Install python 2.x and pip - name: Bootstrap | Install python 2.x and pip
raw: raw:
apt-get update && \ apt-get update && \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment