Initial commit
This commit is contained in:
19
roles/wireless/tasks/main.yml
Normal file
19
roles/wireless/tasks/main.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
# Configure device section
|
||||
- name: Configure device section
|
||||
ansible.builtin.include_tasks: device.yml
|
||||
# loop: "{{ (wireless_devices | default([])) }}"
|
||||
loop: "{{ ansible_facts.openwrt_wireless | list }}"
|
||||
|
||||
# Configure interface section
|
||||
- name: Configure interface section
|
||||
ansible.builtin.include_tasks: interface.yml
|
||||
loop: "{{ wireless_interfaces | default([]) }}"
|
||||
loop_control:
|
||||
loop_var: outerItem
|
||||
|
||||
# Apply changes and reload wireless service
|
||||
- name: Apply changes and reload wireless
|
||||
uci:
|
||||
command: commit
|
||||
notify: Reload wireless
|
||||
Reference in New Issue
Block a user