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:
|
debug:
|
||||||
var: flannel_manifest.stdout
|
var: flannel_manifest.stdout
|
||||||
|
|
||||||
- name: Forçar uso da interface correta
|
- name: Adicionar --iface=eth1 ao flanneld
|
||||||
become: true
|
become: true
|
||||||
replace:
|
ansible.builtin.lineinfile:
|
||||||
path: /tmp/kube-flannel.yml
|
path: /tmp/kube-flannel.yml
|
||||||
regexp: 'command:
|
insertafter: ' - --kube-subnet-mgr'
|
||||||
\[.*?flanneld.*?\]
|
line: ' - --iface=eth1'
|
||||||
'
|
|
||||||
replace: |
|
|
||||||
command:
|
|
||||||
- /opt/bin/flanneld
|
|
||||||
- --ip-masq
|
|
||||||
- --kube-subnet-mgr
|
|
||||||
- --iface=eth1
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user