Use proper subnet in nmcli

This commit is contained in:
dogeystamp 2022-03-04 07:30:09 -05:00
parent 956def4501
commit 8eaf39fbd7
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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