ansible-unifi-inventory

Ansible inventory plugin that discovers hosts from a UniFi controller

An Ansible collection whose inventory plugin reads a UniFi controller and turns its recently seen clients, and optionally its network devices, into Ansible hosts and groups, with password and TOTP login or an existing session token and credentials that can come from encrypted lookups.

Trade-offs

  • It only reads controller data; the credentials Ansible uses to connect to hosts stay separate.
  • UniFi Network API keys are a different credential type and are not supported, so it logs in as a local account instead.

Q&A1

Yes, through environment variables or Jinja2 lookups such as encrypted files.

Reviews

Loading reviews

    More in Ansible

    See all 5 →
    • RemotePowerSelf-hosted fleet monitoring and remote management in one app
    • CrewshipTurns one Ubuntu server into a self-hosted fleet of AI coding agents
    • Cloud BenchSame benchmarks across clouds, with cost per point
    • ansible-static-lintFast offline companion to ansible-lint, with the same rules and output
    • k3s-cluster-maintenanceAnsible role that patches K3s nodes one at a time, safely

    More in Infra as code

    See all 12 →
    • FinFocusPrices Pulumi previews before deploy, with budgets enforced in CI
    • cdk-agcGarbage collector for unused AWS CDK assets, Docker images and temp folders
    • Proxmox-GitOpsGitOps automation for Linux containers on Proxmox VE
    • TerraducktelSelf-hosted Terraform and Helm orchestration, no SaaS
    • TerraTidySingle-binary quality platform for Terraform and Terragrunt
    • EndstateReinstall apps and restore settings on a fresh Windows PC

    More in Networking

    See all 23 →
    • blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
    • SnitchPer-app network monitor and outbound firewall for the desktop
    • ConduitSSH, Mosh and SFTP client for phones with no account and no cloud sync
    • XDPerfXDP traffic generator with WASM packet plugins
    • rustbgpdAn API-first BGP daemon in Rust for route servers and route reflectors
    • ADNSAndroid Private DNS controller with a native NextDNS dashboard and no VPN