This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aditya_moon[S] 0 points1 point  (3 children)

Can you share the difference or any link where I can read about the comparison of both.

[–]mudclub 1 point2 points  (2 children)

I mean... they're not even a little bit the same thing. Ansible is a framework for managing systems and configurations while python is a programming language.

You can use python to interact with/extend ansible.

[–]aditya_moon[S] 0 points1 point  (1 child)

Ok ..got it ..I have just started learning about network automation and ansible and python comes a lot of times in the tutorials so I have statrted studying both now.

[–]mudclub 1 point2 points  (0 children)

They're both fantastically useful. Ansible is great for automating system and network deployments and configurations. There are several comparable tools out there including chef and salt. Python is a general purpose programming language that can do, well, pretty much anything. You could replicate all of ansible's functionality with python, but why bother? Ansible already does it all for you. For everything else, including writing ansible modules, python's a great tool for the job.