Ansible is approachable enough that many people learn it by copying playbooks off the internet, and that is precisely the problem. It is simple to run and simple to misuse, so the difference between an ad-hoc collection of tasks and a maintainable automation codebase comes down to how you learn it. Order matters.
This path starts with a practical, project-shaped introduction, deepens your grasp of playbooks and roles, then branches into the specialty of network automation before ending on advanced patterns.
Start practical, then go deeper
Begin with Ansible for DevOps, which is the most practical on-ramp, tying Ansible to real infrastructure and deployment problems. Then read Ansible for a more complete reference to the tool's model and behavior. Solidify the everyday building block with Ansible Playbook Essentials, which focuses squarely on writing clean, reusable playbooks.
Sharpen your playbook craft
Learning Ansible 2 - Second Edition rounds out your understanding of roles, variables, and orchestration with worked examples. This is the stage where Ansible stops being a script runner and becomes a structured way to describe infrastructure, so it is worth slowing down here.
Automate networks and master the tool
Ansible is huge in network operations, so Network Programmability and Automation gives you the broader context of programmable networks, and Ansible for Network Automation applies the tool specifically to switches, routers, and configs. Finish with Mastering Ansible - Fourth Edition for advanced execution strategies, performance, and large-scale patterns, and keep Ansible Configuration Management nearby as a focused reference on the configuration-management use case.
Read in this order and your Ansible goes from copied snippets to infrastructure you can trust and hand to a team. Follow the full path to keep the books sequenced.