ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

ansible what are the differences between version 2, 3, and 4

2022-07-28 13:33:07  阅读:177  来源: 互联网

标签:core what Ansible version differences community ansible


ansible 从2.9 开始 版本规划有了变化,

找了一篇文章解释了这个原因,记录一下 Ansible - what are the differences between version 2, 3, and 4? - Stack Overflow

 

Previously I used ansible 2.x and now the latest ansible version is 4.x. Having read Ansible Roadmap and Announcing the Community Ansible 3.0.0 Package but not clear what are the differences among versions 2, 3, and 4. It looks version 2.x (base or core) is included in Ansible 3.x and seemingly in 4.x as well. It is not clear if playbooks developed with Ansible 2.9 is compatible in Ansible 4.x.

How can I clearly understand their differences? Please advise the best resources to understand the differences between Ansible 2, 3, and 4.

 

Today, there are 3 distinct artefacts in the Ansible open source world:

Ansible Core - A minimal Ansible language and runtime (soon to be renamed from ansible-base) Ansible Collections on Galaxy (community supported) Ansible community package - Ansible installation including ansible-base/core plus community curated Collections Now that these artefacts are managed separately, their versions are diverging as well. Moving forward, Ansible Core will maintain its existing numbering scheme (similar to the Linux Kernel). The next version of Ansible Core after ansible-base 2.10 will be ansible-core 2.11. The Ansible community package (Ansible Core + community Collections) is adopting semantic versioning. The next version of the Ansible community package after 2.10 is 3.0.0.
enter image description here

 

 

Basically, Ansible just wants to separate ansible runtime and modules/plugins/callbacks/actions so they can be managed independently.

On Ansible 3.0 and later, it's now separated into two packages:

  • ansible-core (it was ansible-base in ansible 3.0), the runtime and a builtin Collection (a shortlist of core modules/plugins/etc)
  • ansible, community curated Collections

The ansible-core package will maintain existing versioning scheme (similar to the Linux Kernel), while ansible package is adopting semantic versioning

So Ansible 4.0 comprises two packages: ansible-core 2.12 (runtime with ansible.builtin Collection) and ansible 4.0 (community curated Collections).

I guess playbook written for ansible 2.9.x will still continue to work and be supported in Ansible 4 (ansible-core 2.12.x). As mentioned by mdaniel, it's also better to start using the qualified module names.

It'll be good to check the release notes for any breaking changes.

More info:

 

As very best I can tell, their Q&A blog post lays out the utterly confusing hijacking of the Ansible name and new versioning scheme, and then their "build-data" repo gives the nitty gritty of what underlying ansible-core and associated collections are actually packaged inside each of the new "ansible" releases

It is not clear if playbooks developed with Ansible 2.9 is compatible in Ansible 4.x.

I would suspect that for as long as ansible-core accepts the unqualified module names, the playbooks will continue to work, with the ever present asterisk that the underlying collection could make something required that previously wasn't or even have the run of the mill bugs found in all software

I would also guess that unless your project intends to stay on the legacy ansible versions forever, using the qualified module names are probably the safest futureproofing, although I do dread the horrific verbosity such a change is going to introduce

 

标签:core,what,Ansible,version,differences,community,ansible
来源: https://www.cnblogs.com/wl30564/p/16528325.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有