blob: ffe81471324068757bf83825a61fb749b385cd97 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
---
- name: Create CNI bin directory
file:
state: directory
path: "{{ cni_bin_dir }}"
mode: 0755
owner: root
group: root
recurse: yes
- name: Create CNI extraction tempdir
command: mktemp -d
register: cni_tmpdir
- name: Download CNI
get_url:
url: "{{ cni_bin_url }}"
checksum: "sha1:{{ cni_bin_checksum }}"
mode: 0644
dest: "{{ cni_tmpdir.stdout }}"
register: downloaded_tarball
- name: Extract CNI
become: yes
unarchive:
remote_src: True
src: "{{ downloaded_tarball.dest }}"
dest: "{{ cni_bin_dir }}"
when: downloaded_tarball.changed
- name: Ensure CNI net.d exists
file:
path: /etc/cni/net.d
recurse: yes
state: directory
- name: Configure OpenShift node with disabled service proxy
lineinfile:
dest: "/etc/sysconfig/{{ openshift.common.service_type }}-node"
regexp: '^OPTIONS="?(.*?)"?$'
backrefs: yes
backup: yes
line: 'OPTIONS="\1 --disable dns,proxy,plugins"'
- name: force node restart to disable the proxy
service:
name: "{{ openshift.common.service_type }}-node"
state: restarted
|