Use proper subnet in nmcli
This commit is contained in:
parent
956def4501
commit
8eaf39fbd7
@ -64,6 +64,9 @@ dns_forward: 1.1.1.1
|
|||||||
|
|
||||||
# Local IP address subnet
|
# Local IP address subnet
|
||||||
local_subnet: 192.168.0.0/24
|
local_subnet: 192.168.0.0/24
|
||||||
|
|
||||||
|
# CIDR prefix
|
||||||
|
subnet_prefix: /24
|
||||||
|
|
||||||
# Static address of the server (locally)
|
# Static address of the server (locally)
|
||||||
# Preferably have another one to SSH into with Ansible, as we change the IP midway
|
# Preferably have another one to SSH into with Ansible, as we change the IP midway
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
community.general.nmcli:
|
community.general.nmcli:
|
||||||
dns4: "{{ dns_forward }}"
|
dns4: "{{ dns_forward }}"
|
||||||
dns4_ignore_auto: yes
|
dns4_ignore_auto: yes
|
||||||
ip4: "{{ local_ip }}"
|
ip4: "{{ local_ip }}{{ subnet_prefix }}"
|
||||||
method4: manual
|
method4: manual
|
||||||
state: present
|
state: present
|
||||||
conn_name: wired
|
conn_name: wired
|
||||||
|
Reference in New Issue
Block a user