120547b1b8
Add community.openwrt collection, dlink host to inventory, openwrt role with system/network/firewall tasks, and two playbooks: dlink-init.yml for one-time bootstrap from factory IP, and openwrt.yml for ongoing idempotent configuration. Network: MGMT untagged + LAN (vlan2) tagged on WAN port trunk to MikroTik ether3. Firewall zones replace factory WAN/LAN with mgmt (input ACCEPT) and lan (forward ACCEPT, AP mode).
15 lines
290 B
YAML
15 lines
290 B
YAML
---
|
|
- name: Reload network
|
|
community.openwrt.nohup:
|
|
command: /etc/init.d/network reload
|
|
ignore_unreachable: true
|
|
|
|
- name: Reload firewall
|
|
community.openwrt.service:
|
|
name: firewall
|
|
state: restarted
|
|
|
|
- name: Reload wireless
|
|
community.openwrt.command:
|
|
cmd: wifi reload
|