Initial commit
This commit is contained in:
30
roles/gekmihesg.openwrt/handlers/main.yml
Normal file
30
roles/gekmihesg.openwrt/handlers/main.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: setup wifi
|
||||
nohup:
|
||||
command: /sbin/wifi
|
||||
delay: 1
|
||||
when: "'openwrt' in group_names"
|
||||
|
||||
- name: reload wifi
|
||||
nohup:
|
||||
command: /sbin/wifi reload
|
||||
delay: 1
|
||||
when: "'openwrt' in group_names"
|
||||
|
||||
- name: restart network
|
||||
nohup:
|
||||
command: /etc/init.d/network restart
|
||||
delay: 1
|
||||
when: "'openwrt' in group_names"
|
||||
|
||||
- name: wait for connection
|
||||
wait_for_connection:
|
||||
timeout: "{{ openwrt_wait_for_connection_timeout }}"
|
||||
delay: 5
|
||||
when:
|
||||
- "'openwrt' in group_names"
|
||||
- openwrt_wait_for_connection
|
||||
listen:
|
||||
- setup wifi
|
||||
- reload wifi
|
||||
- restart network
|
||||
Reference in New Issue
Block a user