mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 08:43:05 +00:00
Update roles/kube-master/tasks/main.yml
This commit is contained in:
@ -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'
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user