Porting between Ansible versions
Ansible is a fast-moving project, and with releases and new features added, new modules (and module enhancements) are released and the inevitable bugs that come with the software are fixed. There is no doubt that you will end up writing your code against one version of Ansible only to need to run it on a newer version again at some point. By way of example, when we started writing the second edition, the current release of Ansible was 2.15.
Often, you will find that your code from an earlier version just about works when you upgrade it, but this isn’t always a given. Modules are sometimes deprecated (although usually not without warning) and features do change. You can find more details on the 2.15 release notes here: https://github.com/ansible/ansible/blob/v2.15.2/changelogs/CHANGELOG-v2.15.rst.
So, the question remains—how can you ensure that your playbooks, roles, modules, and plugins still work when you update your Ansible installation...