Commit 1f71126d authored by Boxiang Sun's avatar Boxiang Sun

Pin and allow api.github.com, need by theia

parent 827da1e3
......@@ -161,6 +161,12 @@
line: "140.82.121.3 github.com"
dest: /etc/hosts
# Allow to access api.github.com, needed by theia
- name: Change the github.com in the hosts
lineinfile:
line: "140.82.121.3 api.github.com"
dest: /etc/hosts
# Allow to access gitlab.com, required by gitlab SR
# - name: Pin the gitlab.com in the hosts
# lineinfile:
......@@ -176,6 +182,15 @@
# destination: gitlab.com
# jump: ACCEPT
- name: Allow to access api.github.com
iptables:
action: append
chain: OUTPUT
protocol: tcp
destination_port: 443
destination: api.github.com
jump: ACCEPT
- name: Allow to access github.com
iptables:
action: append
......
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