Update roles/kube-master/tasks/main.yml

This commit is contained in:
2025-10-15 19:38:26 +00:00
parent 840b51dfc4
commit 0dc4bf5c18

View File

@ -58,19 +58,11 @@
regexp: '10\.244\.0\.0/16'
replace: '192.168.3.0/16'
- name: Injeta configuração defensiva no ConfigMap
ansible.builtin.replace:
path: /tmp/kube-flannel.yml
regexp: 'net-conf.json: \|(\n[ ]{4,}.*)+?\n[ ]{2,}\}'
replace: |
net-conf.json: |
{
"Network": "192.168.3.0/16",
"Backend": {
"Type": "vxlan"
},
"Interface": "eth1"
}
- name: Corrigir net-conf.json no manifest do Flannel
ansible.builtin.script:
cmd: patch_netconf.py
- name: cat flannel
shell: |