PyCon Hong Kong 2024

PyCon Hong Kong 2024

Network Automation for Improved Efficiency using Ansible and Python
11-16, 11:25–11:40 (Asia/Hong_Kong), LT9
Language: English

This presentation highlights how network automation with Python and Ansible enhances management efficiency. It addresses the challenges of traditional manual network tasks, which are time-consuming, error-prone, and hard to scale. By showcasing Python's and Ansible's capabilities, the presentation demonstrates how automation leads to improved efficiency, reduced errors, and faster deployments, allowing network administrators to focus on critical tasks and ensuring a more reliable and secure network environment.


This presentation explores how network automation can significantly enhance management efficiency. Traditional manual network configuration, provisioning, and maintenance are time-consuming, error-prone, and difficult to scale with network growth.

Ansible, a popular open-source tool, is introduced as a key component for automating network configurations and workflows. We explain Ansible's agentless architecture and the use of playbooks—YAML files that define automated tasks for network devices.

Through code examples and a sample playbook, we demonstrate how Python scripts can interact with network devices and be integrated into Ansible playbooks, enabling the automation of complex tasks efficiently.

I am a seasoned IT professional with over 20 years of experience, certified in PMP, CISM,, CISA and TOGAF, and recognized as an Open Group Distinguished IT Technical Specialist.

As the Strategic Business Development Director at Red Hat, I drive transformation and revenue growth through open-source solutions, enhancing customer experience and market presence.