29 lines
No EOL
557 B
YAML
29 lines
No EOL
557 B
YAML
---
|
|
|
|
- name: Try nmcli add Ethernet - conn_name only & ip4 gw4
|
|
nmcli:
|
|
type: ethernet
|
|
conn_name: "Wired connection 1"
|
|
ifname: enp8s0
|
|
ip4: 10.0.1.2
|
|
gw4: 10.0.1.1
|
|
dns4: 9.9.9.9
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Try nmcli add Ethernet - conn_name only & ip4 gw4
|
|
nmcli:
|
|
type: ethernet
|
|
conn_name: "Wired connection 2"
|
|
ifname: enp9s0
|
|
ip4: 10.0.1.9
|
|
gw4: 10.0.1.1
|
|
dns4: 9.9.9.9
|
|
state: present
|
|
become: yes
|
|
|
|
- name: Restart network
|
|
service:
|
|
name: NetworkManager
|
|
state: restarted
|
|
become: yes |