1.2. Automation Dashboard のインストール
Automation Dashboard をインストールして、Ansible Automation Platform デプロイメント全体のジョブの実行、効率、および自動化の節約に関連する主要なメトリクスを収集および分析します。
前提条件
以下のテスト済み設定のいずれか:
- RHEL 9 x86 または ARM ベースの物理または仮想ホスト。
外部データベース: PostgreSQL v15 データベース。
重要Ansible Automation Platform と同じホストに Automation Dashboard をインストールしないでください。
Automation Dashboard のインストールは、次の設定でテストされています。
- 80 GB ハードドライブ (データの増加に応じて)
- 4 つの vCPU x 16 GB の RAM
- ディスク IOPS - 3000
- 月間最大 10,000 件のジョブと 4,700 万件のサマリー処理
- 同じバージョンの 3 つの Ansible Automation Platform デプロイメントに対する接続
- RHEL 9 ホストの baseos および Ansible Automation Platformstream リポジトリーパッケージへのアクセス。
インストール用の RHEL 9 ホストへの root 以外のログインアカウント。
-
これには、パスワードなしの
sudoアクセスが root に必要です。 -
デフォルトでは、ユーザーアカウントの
$HOMEDIRを使用します。
-
これには、パスワードなしの
- Ansible Automation Platform インスタンスにアクセスするための URL の詳細。
- Ansible Automation Platform インスタンスと Automation Dashboard 間の通信に使用される Ansible Automation Platform OAuth2 トークン。
- Automation Dashboard のインストールコンポーネントを提供するインストールバンドルをダウンロードするためのアクセス。
ファイアウォールアクセスを開き、AAP インスタンスと Automation Dashboard 間の双方向通信が可能である。
- これには、ダッシュボードから Ansible Automation Platform インスタンスへの HTTPS/443 (または Ansible Automation Platform で設定されたポート) が含まれます。
- ポート 8447 は、Automation Dashboard のデフォルトの入力ポートです。このポートはインストール時に設定できるようにします。
- PostgreSQL への 5432 をブロックする可能性がある RHEL ファイアウォールポート。
-
サポートされている RHEL バージョンにインストールされている、サポート対象の
ansible-coreバージョン。
手順
- access.redhat.com から最新のインストーラー tar ファイルをダウンロードします。Downloads > Red Hat Ansible Automation Platform Product Software に移動します。
- インストールソースファイルを RHEL 9 ホストにコピーします。
インストールソースを展開します。これには約 500MB のディスク容量が必要になります。この例では、ec2-user ホームディレクトリー (
/home/<username>) を使用します。tar -xzvf ansible-automation-dashboard-containerized-setup-bundle-0.1-x86_64.tar.gz cd ansible-automation-dashboard-containerized-setup/次のコマンドを実行して、必要なソフトウェアのインストールを確認します。
cd ansible-automation-dashboard-containerized-setup sudo dnf install ansible-core ansible-galaxy collection install -r requirements.ymlAnsible Automation Platform インスタンスにアプリケーションの
client_id/client_secretを作成します。次の手順に従って OAuth2 アプリケーションを作成します。
Ansible 2.4 の場合:
Ansible 2.5 および 2.6 の場合:
次の情報を追加します。
- Name: automation-dashboard-sso
- Authorization grant type: authorization-code
- Organization: Default
- Redirect URIs: https://AUTOMATION_DASHBOARD_FQDN/auth-callback
Client type: Confidential
注記Ansible Automation Platform の Name、Organization、および HTTPS ポート番号の値は設定可能です。このドキュメントで示されている例では、ポート 443 の使用を前提としています。
-
入力した
client_idおよびclient_secret informationをインベントリーファイルに保存します。 Ansible Automation Platform アクセストークンを作成します。
https://AAP_GATEWAY_FQDN/#/users/<id>/tokens に移動し、次の情報を使用してトークンを作成します。
- OAuth application: automation-dashboard-sso
- Scope: read
-
このアクセストークンの値を保存します。
clusters.yamlはこのアクセストークンを使用します。
サンプルインベントリーをコピーし、インストールプログラムを実行する前にこれを変更します。
cp -i inventory.example inventory vi inventory重要- これは、Ansible Automation Platform 2.4、2.5、および 2.6 のデフォルト値を含むテスト済みのインベントリーの例です。
ご使用の環境でこのインベントリー設定を使用するには、次の値を変更する必要があります。
-
RHEL 9 ホストの出現箇所で、
host.example.comからご自身の FQDN ホストに変更します。 -
すべての
_admin_passwordまたは_pg_password値内のパスワードと一致するように、TODOのフレーズを変更します。
-
RHEL 9 ホストの出現箇所で、
- 詳細は、このドキュメントの インベントリー変数 のセクションを参照してください。
# This is our Automation Dashboard front-end application [automationdashboard] host.example.com ansible_connection=local # These are required vars for the installation and should not be removed [automationdashboard:vars] # Configure AAP OAuth2 authentication. # aap_auth_provider_name - name as shown on login page. aap_auth_provider_name=Ansible Automation Platform # aap_auth_provider_protocol - http or https aap_auth_provider_protocol=https # AAP version - 2.4, 2.5 or 2.6 aap_auth_provider_aap_version=2.5 # aap_auth_provider_host - AAP IP or DNS name, with optional port aap_auth_provider_host=my-aap.example.com # aap_auth_provider_check_ssl - enforce TLS check or not. aap_auth_provider_check_ssl=true # aap_auth_provider_client_id and aap_auth_provider_client_secret - # they are obtained from AAP when OAuth2 application is created in AAP. aap_auth_provider_client_id=TODO aap_auth_provider_client_secret=TODO # Specify amount of old data to synchronoize after installation. # The initial_sync_days=N requests N days of old data, counting from "today". # The initial_sync_since requests data from the specified data until "today". # If both are specified, the initial_sync_since will be used. initial_sync_days=1 # initial_sync_since=2025-08-08 # Hide warnings when insecure https request are made. # Use this if your AAP uses self-signed TLS certificate. # show_urllib3_insecure_request_warning=False # Force clean install-like # dashboard_update_secret=true # HTTP/HTTPS settings # nginx_disable_https=true # Change nginx_http_port or nginx_https_port if you want to access dashboard on a different TCP port. # nginx_http_port=8083 # nginx_https_port=8447 # TLS certificate configuration # The dashboard_tls_cert needs: # - contain server certificate, intermediate CA certificates and root CA certificate. # - the server certificate must be the first one in the file. # dashboard_tls_cert=/path/to/tls/dashboard.crt # dashboard_tls_key=/path/to/tls/dashboard.key # Enable Django DEBUG. # django_debug=True [database] host.example.com ansible_connection=local [all:vars] postgresql_admin_username=postgres postgresql_admin_password=TODO # AAP Dashboard - mandatory # -------------------------- dashboard_pg_containerized=True dashboard_admin_password=TODO dashboard_pg_host=host.example.com dashboard_pg_username=aapdashboard dashboard_pg_password=TODO dashboard_pg_database=aapdashboard # bundle_install=true # <full path to the bundle directory> bundle_dir='{{ lookup("ansible.builtin.env", "PWD") }}/bundle'インストールプログラムを実行します。
ansible-playbook -i inventory ansible.containerized_installer.dashboard_install
検証
参考までに、次の出力例を参照してください。
PLAY RECAP *********************************************************************************************************************************************
ec2-54-147-26-173.compute-1.amazonaws.com : ok=126 changed=51 unreachable=0 failed=0 skipped=42 rescued=0 ignored=0
localhost : ok=12 changed=0 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0
代わりの設定も可能です (たとえば、Automation Dashboard のデータベースを別のホストに設定できます)。これには、インベントリーファイル内の変数に追加の変更を加える必要があります。使用可能な変数は、このドキュメントの インベントリー変数 セクションを参照してください。