# Ansible's plans regarding Python 2 EOL

**URL:** <https://forum.ansible.com/t/ansibles-plans-regarding-python-2-eol/31361>\
**Category:** Ansible Project\
**Created:** [September 25, 2019, 1:05pm UTC](https://forum.ansible.com/t/ansibles-plans-regarding-python-2-eol/31361 "2019-09-25T13:05:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![afeller](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@afeller](https://forum.ansible.com/u/afeller)\
**Post date:** [September 25, 2019, 1:05pm UTC](https://forum.ansible.com/t/ansibles-plans-regarding-python-2-eol/31361/1 "2019-09-25T13:05:46Z")

</div>

We’ve all seen the warnings about Python 2 support ceasing on January 1st, 2020 from [various projects](https://python3statement.org/) including [pip](https://pip.pypa.io/en/latest/development/release-process/#python-2-support) for months now. I hoped [Ansible blog](https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fwww.ansible.com+python+3) would have officially and proactively addressed the topic as this may require significant work for Ansible customers and the Ansible project over and above the early, [minimal Python 3 support documentation](https://docs.ansible.com/ansible/latest/reference_appendices/python_3_support.html) including Ansible package distribution requiring python 2.x and potential migration guides for various Linux distributions if not Red Hat family at the least; [past threads](https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!topic/ansible-project/J7cU2xiy9KU) highlight tradeoffs over package versus pip installation.

Does anyone have more information than what is cited above?

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [September 25, 2019, 5:04pm UTC](https://forum.ansible.com/t/ansibles-plans-regarding-python-2-eol/31361/2 "2019-09-25T17:04:04Z")

</div>

Nothing is changing from the Ansible perspective, which is why nothing has been said. Ansible modules will still be required to support Python 2.6+ and controller code will still be required to support Python 2.7+.

This will likely continue until the EOL of Linux distributions that use Python 2, such as RHEL7.

Red Hat will continue supporting Python 2 for RHEL7 until June 2024 iirc.

We may decide to drop python 2 support on the controller before RHEL7 EOL, but should we make such a decision it will be announced at that time.
