blob: dde099984b8c7822a79140fb506a9fdcca87d432 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
---
# Set http_proxy, https_proxy, and no_proxy in /etc/atomic.conf
# regexp: the line starts with or without #, followed by the string
# http_proxy, then either : or =
- block:
- name: Add http_proxy to /etc/atomic.conf
lineinfile:
dest: /etc/atomic.conf
regexp: "^#?http_proxy[:=]{1}"
line: "http_proxy: {{ openshift.common.http_proxy | default('') }}"
when:
- openshift.common.http_proxy is defined
- openshift.common.http_proxy != ''
- name: Add https_proxy to /etc/atomic.conf
lineinfile:
dest: /etc/atomic.conf
regexp: "^#?https_proxy[:=]{1}"
line: "https_proxy: {{ openshift.common.https_proxy | default('') }}"
when:
- openshift.common.https_proxy is defined
- openshift.common.https_proxy != ''
- name: Add no_proxy to /etc/atomic.conf
lineinfile:
dest: /etc/atomic.conf
regexp: "^#?no_proxy[:=]{1}"
line: "no_proxy: {{ openshift.common.no_proxy | default('') }}"
when:
- openshift.common.no_proxy is defined
- openshift.common.no_proxy != ''
|