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_subnet: 192.168.0.0/24
|
||||
|
||||
# CIDR prefix
|
||||
subnet_prefix: /24
|
||||
|
||||
# Static address of the server (locally)
|
||||
# Preferably have another one to SSH into with Ansible, as we change the IP midway
|
||||
|
@ -42,7 +42,7 @@
|
||||
community.general.nmcli:
|
||||
dns4: "{{ dns_forward }}"
|
||||
dns4_ignore_auto: yes
|
||||
ip4: "{{ local_ip }}"
|
||||
ip4: "{{ local_ip }}{{ subnet_prefix }}"
|
||||
method4: manual
|
||||
state: present
|
||||
conn_name: wired
|
||||
|
Reference in New Issue
Block a user