Cruise5
Cruise5

Reputation: 247

What is the purpose of having a newer python version in ansible remote nodes?

Let's say if your remote host has python version 2.7. What difference does it make having 2.7 version vs. a newer version like 3.6 in the remote node? Does it make execution of playbooks faster? Same for the control node - What difference the python version makes other than some modules not being compatible with older python versions ?

Upvotes: 0

Views: 144

Answers (1)

Jiří Baum
Jiří Baum

Reputation: 6930

  • Both versions 2.7 and 3.6 of Python are past end-of-life, so support for both of them is likely to be variable. Many modules have dropped support soon after end-of-life, and others may drop support at any time.

    In principle, neither 2.7 nor 3.6 get security updates any more, although that may not be important if all ends of the connection are in any case trusted. However, if your systems have Python 2.7 and 3.6, other parts may also be past their respective end-of-life dates, and those may be more security critical.

  • Speed of execution is unlikely to be a big difference, most likely not noticeable; the biggest delay will in any case be the network round-trips.

Upvotes: 1

Related Questions