{"id":18803951,"url":"https://github.com/ganto/ansible-openwrt","last_synced_at":"2026-04-28T13:32:42.366Z","repository":{"id":53603695,"uuid":"339218853","full_name":"ganto/ansible-openwrt","owner":"ganto","description":"Ansible Collection to manage OpenWRT devices","archived":false,"fork":false,"pushed_at":"2021-03-21T23:23:27.000Z","size":134,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T20:30:28.764Z","etag":null,"topics":["ansible","openwrt","uci"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ganto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-15T22:01:28.000Z","updated_at":"2021-03-21T20:34:48.000Z","dependencies_parsed_at":"2022-09-17T09:01:02.197Z","dependency_job_id":null,"html_url":"https://github.com/ganto/ansible-openwrt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganto%2Fansible-openwrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganto%2Fansible-openwrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganto%2Fansible-openwrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganto%2Fansible-openwrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganto","download_url":"https://codeload.github.com/ganto/ansible-openwrt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239735863,"owners_count":19688355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","openwrt","uci"],"created_at":"2024-11-07T22:37:31.384Z","updated_at":"2026-04-28T13:32:37.332Z","avatar_url":"https://github.com/ganto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Collection: ganto.openwrt\n\n[![CI](https://github.com/ganto/ansible-openwrt/workflows/CI/badge.svg?event=push)](https://github.com/ganto/ansible-openwrt/actions?query=workflow%3ACI)\n\nThis Ansible collection consists of modules and roles to manage [OpenWRT](https://openwrt.org/) and [TurrisOS](https://project.turris.cz/en/software) based systems.\n\n_IMPORTANT: This collection is still in early development and cannot be installed via Ansible Galaxy yet. Check the bundled [molecule](molecule/default) scenario for the implemented use-cases. Everything else is not tested!_\n\n### Roles\n\nSo far the following Ansible roles are implemented:\n| Role Name | Role Configuration                           | Description      |\n| --------- | -------------------------------------------- | ---------------- |\n| network   | [defaults](roles/network/defaults/main.yml)  | Define network configuration through [UCI network options](https://openwrt.org/docs/guide-user/network/ucicheatsheet) |\n| dnsmasq   | [defaults](roles/dnsmasq/defaults/main.yml)  | Manage DHCP and basic DNS through [UCI dhcp](https://openwrt.org/docs/guide-user/base-system/dhcp) options |\n| opkg      | [defaults](roles/opkg/defaults/main.yml)     | Feeds configuration, package installation and system updates |\n| resolver  | [defaults](roles/resolver/defaults/main.yml) | Manage Knot or Unbound DNS resolver via UCI `resolver` options (TurrisOS only) |\n| system    | [defaults](roles/system/defaults/main.yml)   | Basic system settings through [UCI system options](https://openwrt.org/docs/guide-user/base-system/system_configuration) |\n\n### Development\n\n#### Testing\n\nThere is a [Molecule](https://molecule.readthedocs.io/) test profile that can be used to verify the basic functionality of the roles. The default scenario is using the [podman](https://podman.io/) container driver. If you prefer [docker](https://www.docker.com/) you can select the corresponding scenario with the `-s docker` molecule arguments.\n\n1. Ensure you have the necessary dependencies installed (e.g. in a Python [venv](https://docs.python.org/3/tutorial/venv.html)):\n```\npip install -r molecule/default/requirements.txt        # for podman\n# or\npip install -r molecule/docker/requirements.txt         # for docker\n```\n2. Run the test suite. The options in brackets are optional but useful if you need to troubleshoot issues:\n```\nmolecule [-vvv] test [--destroy never][-s docker]\n```\n3. If you used `--destroy never` the container will remain after the test run and can be inspected interactively via:\n```\npodman exec -it \u003ccontainer-id\u003e /bin/sh                  # for podman\n# or\ndocker exec -it \u003ccontainer-id\u003e /bin/sh                  # for docker\n```\n4. Once you're done with inspecting the instance it has to be deleted before a new test run can be started:\n```\nmolecule destroy [-s docker]\n```\n\n### License\n\n[GPL-3.0](https://spdx.org/licenses/GPL-3.0-or-later.html) or some later version\n\n\n### Author\n\nThe content of this repository was written by:\n\n- [Reto Gantenbein](https://linuxmonk.ch/) | [e-mail](mailto:reto.gantenbein@linuxmonk.ch) | [GitHub](https://github.com/ganto)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganto%2Fansible-openwrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganto%2Fansible-openwrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganto%2Fansible-openwrt/lists"}