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 コントローラーを Ansible Automation Platform 2.4 に接続する場合は、registry.redhat.io/ ansible-automation-platform-24/de-minimal-rhel9:latest (推奨) または registry.redhat.io/ansible-automation-platform-24/de-minimal-rhel8:latest を使用する必要があります。
    • Event-Driven Ansible コントローラーを Ansible Automation Platform 2.5 に接続する場合は、registry.redhat.io/ ansible-automation-platform-25/de-minimal-rhel9:latest (推奨) または registry.redhat.io/ansible-automation-platform-25/de-minimal-rhel8:latest を使用する必要があります。
    • Event-Driven Ansible コントローラーを Ansible Automation Platform 2.5 に接続する場合は、registry.redhat.io/ ansible-automation-platform-26/de-minimal-rhel9:latest を使用する必要があります。

手順

  1. Ansible Builder で de-minimal を ベースイメージとして使用し、独自の意思決定環境を構築します。このイメージは、Ansible Automation Platform minimal decision environment で Red Hat が提供しているベースイメージからビルドされています。

    重要

    ansible.eda コレクションは、最小限の ベースイメージにすでにインストールされています。Ansible Builder が再インストールを試みないようにするには、次の例に示すように、ansible.eda をexclude.all_from_collections リストに追加します。

    以下は 、de-minimal を ベースイメージとして使用し、servicenow.itsm コレクションを含むカスタム意思決定環境を構築する Ansible Builder 定義ファイルの例です。

    version: 3
    
    images:
      base_image:
        name: 'registry.redhat.io/ansible-automation-platform-25/de-minimal-rhel9:latest'
    
    dependencies:
      galaxy:
        collections:
          - name: servicenow.itsm
      python_interpreter:
        package_system: "python3.12"
      exclude:
        all_from_collections:
          # ansible.eda is already installed in de-minimal
          - ansible.eda
    
    options:
      package_manager_path: /usr/bin/microdnf
  2. オプション: 他の Python パッケージまたは RPM が必要な場合は、次の内容を単一の定義ファイルに追加します。

    version: 3
    
    images:
      base_image:
        name: 'registry.redhat.io/ansible-automation-platform-25/de-minimal-rhel9:latest'
    
    dependencies:
      galaxy:
        collections:
          - name: servicenow.itsm
      python:
        - six
        - psutil
      python_interpreter:
        package_system: "python3.12"
      exclude:
        all_from_collections:
          # ansible.eda is already installed in de-minimal
          - ansible.eda
    
    options:
      package_manager_path: /usr/bin/microdnf
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

Red Hat ドキュメントについて

Legal Notice

Theme

© 2026 Red Hat
トップに戻る