Change Network interface file from enp7s0 to eth0
This commit is contained in:
@@ -26,7 +26,6 @@ all:
|
|||||||
nat-gateway:
|
nat-gateway:
|
||||||
ansible_host: 65.109.4.220
|
ansible_host: 65.109.4.220
|
||||||
ansible_python_interpreter: /usr/bin/python3.11
|
ansible_python_interpreter: /usr/bin/python3.11
|
||||||
ansible_ssh_common_args: '-o ProxyCommand="ssh -p 22 -W %h:%p -q root@65.109.4.220"'
|
|
||||||
|
|
||||||
kubernetes_api:
|
kubernetes_api:
|
||||||
hosts:
|
hosts:
|
||||||
|
|||||||
+1
-1
@@ -6,6 +6,6 @@
|
|||||||
gather_facts: false
|
gather_facts: false
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
- import_playbook: playbooks/setup_hetzner_nat.yml
|
#- import_playbook: playbooks/setup_hetzner_nat.yml
|
||||||
- import_playbook: playbooks/setup_k8s_cluster.yml
|
- import_playbook: playbooks/setup_k8s_cluster.yml
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
blockinfile:
|
blockinfile:
|
||||||
path: /etc/network/interfaces
|
path: /etc/network/interfaces
|
||||||
block: |
|
block: |
|
||||||
auto enp7s0
|
auto eth0
|
||||||
iface enp7s0 inet dhcp
|
iface eth0 inet dhcp
|
||||||
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
|
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
|
||||||
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/16' -o enp7s0 -j MASQUERADE
|
post-up iptables -t nat -A POSTROUTING -s '10.0.0.0/16' -o eth0 -j MASQUERADE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user