Skip to content

Commit

Permalink
fix: 修复因Rocky Linux 8.5 配置外网IP失败导致的添加k8s node 失败
Browse files Browse the repository at this point in the history
  • Loading branch information
ss75710541 committed Apr 20, 2022
1 parent 98106c8 commit 1c7958c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion roles/host-init/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
become: yes

- name: restart network
service: name=network state=restarted
service: name=NetworkManager state=restarted
become: yes

- name: restart resolved
Expand Down
3 changes: 1 addition & 2 deletions roles/host-init/tasks/publicInterface.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
- name: Configure the public network card
template: src=ifcfg-pip.j2 dest=/etc/sysconfig/network-scripts/ifcfg-pip0 owner=root group=root mode=644
notify: restart network
shell: nmcli connection add type tun ifname pip0 con-name pip0 mode tap ip4 {{ advertise_address }}/24
tags: publicNetwork
8 changes: 0 additions & 8 deletions roles/host-init/templates/ifcfg-pip.j2

This file was deleted.

0 comments on commit 1c7958c

Please sign in to comment.