Router
: Xiaomi Mi Router 3 (R3)
Firmare
: X-WRT
There are different playbooks which groups different roles:
sysupgrade
: updates the firmware to the latest version available on the website.- Default X-WRT information:
- SSID:X-WRT_XXXX
- SSID Password:88888888
- IP:http://192.168.15.1/
- Authentication:root/admin
- Remember to enable SSH and root authentication after factory reset
- Default X-WRT information:
openwrt
base
: install the main packages such as curl, wget, htop...adblock
: install adblock package (optional, uncomment)
ansible-galaxy collection install -r requirements.yaml
Before running the openwrt playbook, please set the variables such as SSID's and SSID Key's.
If using ssh password for logging in (might need to use sshpass)
ansible-playbook -i hosts.yaml openwrt.yaml --user=root -k
If using ssh key on the known-hosts
ansible-playbook -i hosts.yaml openwrt.yaml --user=root -K
https://sourceforge.net/projects/sshpass/files/sshpass/
./configure
make install