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

This commit is contained in:
2025-10-20 11:03:40 +00:00
parent 808ddb03eb
commit 9721f54e7e

View File

@ -40,19 +40,12 @@
debug:
var: flannel_manifest.stdout
- name: Forçar uso da interface correta
- name: Adicionar --iface=eth1 ao flanneld
become: true
replace:
ansible.builtin.lineinfile:
path: /tmp/kube-flannel.yml
regexp: 'command:
\[.*?flanneld.*?\]
'
replace: |
command:
- /opt/bin/flanneld
- --ip-masq
- --kube-subnet-mgr
- --iface=eth1
insertafter: ' - --kube-subnet-mgr'
line: ' - --iface=eth1'