Skip to content

webD97/ansible-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Operator

An opinionated runner for Ansible on Kubernetes, inspired by Rancher's system-upgrade-controller.

Features

  • Dynamic node-based inventories: Build inventories based on cluster-nodes' labels
  • Static hostname-based inventories: Build inventories with arbitrary hostnames or IPs
  • Chroot-based node mutation: When targeting a cluster node, a chroot can be used as an alternative to SSH (using a highly-privileged pod)
  • Secrets as variables: Kubernetes secrets can be used as Ansible variables
  • Volumes as files: Use image volumes to access blobs (e.g. binaries or archives) at runtime without extending the runtime image*
  • Time windows: Ensure that playbooks only run at a certain time
  • Scheduling: Embrace idempotency and repeat playbook executions based on a schedule

* As of August 2025, image volumes are a beta feature of Kubernetes and not yet supported by all container runtimes.

Example use cases

  • Upgrade k3s on all cluster nodes
  • Manage node-level configuration files
  • Schedule operating system upgrades
  • Export certificates created by cert-manager to external devices

About

An opinionated runner for Ansible on Kubernetes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •