Adrian demos pyinfra Python infrastructure automation
The author demonstrates pyinfra, a Python-based infrastructure automation tool that runs shell commands on multiple servers in parallel over SSH. Unlike Ansible, pyinfra uses Python code instead of YAML for playbooks, enabling native conditionals, loops, type checking, and library imports while remaining declarative and idempotent. The tutorial walks through setting up inventories, managing files and packages, implementing custom operations and facts, handling secrets, and deploying static sites and Python web applications with HTTPS. Open article →