Desktop setup
This commit is contained in:
commit
a7eaa7dbfb
14 changed files with 325 additions and 0 deletions
29
roles/network/tasks/main.yml
Normal file
29
roles/network/tasks/main.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
|
||||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue