Ansible OpenWrt Setup

Repository shows how to use Ansible to configure OpenWrt.

Required steps

Install required collections/roles from using ansible-galaxy

ansible-galaxy install -r requirements.yml

Under WSL it might be required to export variable ANSIBLE_CONFIG before running any playbook

export ANSIBLE_CONFIG=$PWD/ansible.cfg

Usage

Test connection to router:

ansible -i inventories/inventory.yml -m ping router.home.arpa --ask-pass

Running setup script:

 ansible-playbook -i inventories/inventory.yml setup.yml -e name=router.home.arpa