One person's Ansible is another's pyinfra.
summary
Shows a concrete conversion: converted Ansible playbook to pyinfra by rewriting inventory and deploy scripts as executable Python, keeping SSH sessions open and using pyinfra connectors (SSH, Docker, Terraform). Implements the home‑lab known_hosts maintenance and demonstrates wrote two facts and an operation to collect and apply SSH host keys, handling idempotency and rehashing when changes occur. Commands and their outputs are visible for debugging, and the conversion runs successfully on the demo hosts as shown. home-lab SSH known_hosts maintenance
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:28Ansible struggles
- 8:45Discovering pyinfra
- 14:06pyinfra vs Ansible
- 22:15Ansible to pyinfra
- 26:32pyinfra script walkthrough
- 30:49Debugging and conclusion
related talks
23mIntroduction to Ansible for Network Engineers
01h 34mAnsible 101
37mAnsible 101
17mManaging Infrastructure with Python, Fabric and Ansible
39mContinuous Deployment with Ansible
29mGood Practices and Security for your Ansible Automation Platform 2
39mAnsible - Your First Step Into Server Provisioning
16mAnsible
