5.2. Event-Driven Ansible のカスタム決定環境のビルド
決定環境は、Ansible ルールブックの実行に合わせてカスタマイズされた実行環境です。
Automation Controller の Ansible Playbook を実行する実行環境と同様に、決定環境は Event-Driven Ansible Controller のルールブックを実行するためのものです。
Event-Driven Ansible 用のカスタム決定環境を作成することで、デフォルトの決定環境にはない、カスタム管理またはサードパーティーのイベントソースプラグインを提供できます。
前提条件
- Ansible Automation Platform 2.5 以降
- Event-Driven Ansible
- Ansible Builder 3.0 以降
ルールブックアクティベーションの失敗を防ぐために、Ansible Automation Platform で適切な Event-Driven Ansible Controller 決定環境を使用してください。
-
Event-Driven Ansible Controller を Ansible Automation Platform 2.4 に接続する場合は、
registry.redhat.io/ansible-automation-platform-24/de-minimal-rhel9:latestを使用する必要があります。 -
Event-Driven Ansible Controller を Ansible Automation Platform 2.6 に接続する場合は、
registry.redhat.io/ansible-automation-platform-25/de-minimal-rhel9:latestを使用する必要があります。
-
Event-Driven Ansible Controller を Ansible Automation Platform 2.4 に接続する場合は、
手順
Ansible Builder で
de-minimalをベースイメージとして使用して、カスタム決定環境をビルドします。このイメージは、Ansible Automation Platform minimal decision environment で Red Hat が提供しているベースイメージからビルドされています。以下は、ansible.eda コレクションでカスタム決定環境をビルドするために、ベースイメージとして
de-minimalを使用する Ansible Builder 定義ファイルの例です。Copy to Clipboard Copied! Toggle word wrap Toggle overflow オプション: 他の Python パッケージまたは RPM が必要な場合は、次の内容を単一の定義ファイルに追加します。
Copy to Clipboard Copied! Toggle word wrap Toggle overflow