add network

This commit is contained in:
ace
2021-10-27 00:34:13 +03:00
commit 3ef3e332ab
14 changed files with 248 additions and 0 deletions

9
handlers/main.yml Normal file
View File

@ -0,0 +1,9 @@
---
- name: Up interface
shell: |
ifup {{ item.name }}
loop: "{{ network.network_scripts.iface }}"
- name: Reload interface with nmcli
command: nmcli conn up {{ item.conn_name }}
loop: "{{ network.network_manager.iface }}"