--- - name: Set hostname community.openwrt.uci: command: set key: system.@system[0].hostname value: "{{ openwrt_hostname }}" - name: Set timezone community.openwrt.uci: command: set key: system.@system[0].timezone value: "{{ openwrt_timezone }}" - name: Configure NTP servers community.openwrt.uci: command: set key: system.ntp.server value: "{{ openwrt_ntp_servers }}" - name: Commit system config community.openwrt.uci: command: commit key: system - name: Set SSH authorized keys community.openwrt.uci: command: set key: "dropbear.@dropbear[0].authorized_keys" value: "{{ openwrt_ssh_authorized_keys | join('\n') }}" when: openwrt_ssh_authorized_keys | length > 0 # The D-Link is a pure AP/relay — no local clients need DNS from it. # Disable dnsmasq entirely and point the system resolver directly at the # CRS (192.168.6.1), which is always reachable via vlan6 regardless of # WAN state and resolves using public upstream servers (1.1.1.1 etc.). - name: Disable dnsmasq service community.openwrt.service: name: dnsmasq enabled: false state: stopped