Open2

ansible-core 2.17 / ansible 10 関連メモ

akira 6592akira 6592

ansible-core 2.17 基本情報

ansible-core 2.17 document

https://docs.ansible.com/ansible-core/2.17/index.html

ansible-core 2.17 ロードマップ

https://docs.ansible.com/ansible-core/2.17/roadmap/ROADMAP_2_17.html

ansible-core 2.17 changelog

変数のスコープ

https://github.com/ansible/ansible/blob/stable-2.17/changelogs/CHANGELOG-v2.17.rst#v2-17-0

import_role action now also gets a public option that controls variable exports, default depending on DEFAULT_PRIVATE_ROLE_VARS (if using defaults equates to public=True).

関連PR: https://github.com/ansible/ansible/pull/81772

module argument spec

module argument spec - Allow module authors to include arbitrary additional context in the argument spec, by making use of a new top level key called context. This key should be a dict type. This allows for users to customize what they place in the argument spec, without having to ignore sanity tests that validate the schema.

関連PR: https://github.com/ansible/ansible/pull/82183

ネストされたテンプレート表記関連

assert - Nested templating may result in an inability for the conditional to be evaluated. See the porting guide for more information.

関連PR: https://github.com/ansible/ansible/pull/82779

paramiko 関連

paramiko connection plugin, configuration items in the global scope are being deprecated and will be removed in favor or the existing same options in the plugin itself. Users should not need to change anything (how to configure them are the same) but plugin authors using the global constants should move to using the plugin's get_option().

関連PR: https://github.com/ansible/ansible/pull/81593

ディストリビューションとPython インタープリタの対応マップの削除

Interpreter Discovery - Remove hardcoded references to specific python interpreters to use for certain distro versions, and modify logic for python3 to become the default.

関連PR: https://github.com/ansible/ansible/pull/82420

yum モジュールの削除

With the removal of Python 2 support, the yum module and yum action plugin are removed and redirected to dnf.

関連PR: https://github.com/ansible/ansible/pull/81866

https://tekunabe.hatenablog.jp/entry/2024/06/07/ansible_yum_removed

マネージドノードの Python 2サポート削除

Removed Python 2.7 and Python 3.6 as a supported remote version. Python 3.7+ is now required for target execution.

関連PR: https://github.com/ansible/ansible/pull/81866

https://tekunabe.hatenablog.jp/entry/2024/06/18/ansible_core_does_not_support_python2_36

ansible-core 2.17 Porting Guide

https://docs.ansible.com/ansible-core/2.17/porting_guides/porting_guide_core_2.17.html

Python 2.7 and Python 3.6 are no longer supported remote versions. Python 3.7+ is now required for target execution.