fix: block in file

This commit is contained in:
2024-11-13 15:29:49 +08:00
parent d23fd388bc
commit 7172f6fd01
2 changed files with 4 additions and 7 deletions

View File

@@ -15,10 +15,9 @@
when: kubelet_status.stdout == "active"
- name: Create or edit http-proxy.conf for containerd
blockinfile:
path: /etc/systemd/system/containerd.service.d/http-proxy.conf
create: yes
block: |
copy:
dest: /etc/systemd/system/containerd.service.d/http-proxy.conf
content: |
[Service]
Environment="HTTP_PROXY=http://192.168.1.38:7890"
Environment="HTTPS_PROXY=http://192.168.1.38:7890"

View File

@@ -1,4 +1,2 @@
[waykey]
192.168.1.16
192.168.1.41
192.168.1.68
192.168.1.43