# Learning Python vs. Ansible

**URL:** <https://forum.ansible.com/t/learning-python-vs-ansible/5157>\
**Category:** Get Help\
**Created:** [April 25, 2024, 5:27pm UTC](https://forum.ansible.com/t/learning-python-vs-ansible/5157 "2024-04-25T17:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![microlinux](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/microlinux/32/2968_2.png) [@microlinux](https://forum.ansible.com/u/microlinux)\
**Post date:** [April 25, 2024, 5:27pm UTC](https://forum.ansible.com/t/learning-python-vs-ansible/5157/1 "2024-04-25T17:27:08Z")

</div>

Hi,

This is more of a general question, but I’d be curious to get the input of the more competent Ansible community here.

In your opinion, how crucial is it to learn Python to get a good grasp on all things Ansible?

Any suggestions?

---

<div class="post-metadata">

**Author:** ![grifferz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/grifferz/32/377_2.png) [@grifferz](https://forum.ansible.com/u/grifferz)\
**Post date:** [April 25, 2024, 5:49pm UTC](https://forum.ansible.com/t/learning-python-vs-ansible/5157/2 "2024-04-25T17:49:18Z")

</div>

> [@microlinux](#):
>
> In your opinion, how crucial is it to learn Python to get a good grasp on all things Ansible?

I’ve been using Ansible for about 5 years and have never written any Python for it. The roles and playbooks are YAML. The templates are Jinja2. Any script or binary you need to write can be written in whatever language you like.

I don’t think it’s important unless you want to work on Ansible itself. Just being able to install Python packages is enough.

---

<div class="post-metadata">

**Author:** ![Dustin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/dustin/32/2573_2.png) [@Dustin](https://forum.ansible.com/u/Dustin)\
**Post date:** [April 29, 2024, 12:30pm UTC](https://forum.ansible.com/t/learning-python-vs-ansible/5157/3 "2024-04-29T12:30:05Z")

</div>

I’ve only been using it for about a year now, and so far I agree. The only scripts I’ve written are Python scripts for data processing. I’ll have Ansible harvest data from a bunch of devices, the Python script then processes the results, and then Ansible executes a set of tasks based on the Python output.
