第8章 Red Hat Ansible Automation Platform Operator への実行ノードの追加
インストールバンドルをダウンロードしてインストールすることで、実行ノードとともに Ansible Automation Platform Operator を有効にできます。
前提条件
- Automation Controller のインスタンス。
- receptor コレクションパッケージがインストールされている。
-
Ansible Automation Platform リポジトリー
ansible-automation-platform-2.5-for-rhel-{RHEL-RELEASE-NUMBER}-x86_64-rpms
が有効になっている。
手順
- Red Hat Ansible Automation Platform にログインします。
-
ナビゲーションパネルで、
を選択します。 - をクリックします。
- Host Name フィールドに実行ノードのドメイン名または IP を入力します。
- オプション: Listener Port フィールドにポート番号を入力します。
- をクリックします。
-
Install Bundle の横にあるダウンロードアイコン
をクリックします。ダウンロードが始まります。ファイルの保存場所をメモしておきます。
gz ファイルを展開します。
注記install_receptor.yml
Playbook を実行するには、Ansible Galaxy から receptor コレクションをインストールする必要があります (Ansible-galaxy collection install -r requirements.yml
)。ユーザー名と SSH 秘密鍵ファイルを使用して Playbook を更新します。
ansible_host
に、先ほど入力したホスト名が事前に入力されていることに注意してください。all: hosts: remote-execution: ansible_host: example_host_name # Same with configured in AAP WebUI ansible_user: <username> #user provided Ansible_ssh_private_key_file: ~/.ssh/id_example
- ターミナルを開き、Playbook を保存したディレクトリーに移動します。
バンドルをインストールするために、次のコマンドを実行します。
ansible-playbook install_receptor.yml -i inventory.yml
- インストールしたら、作成したインスタンスの Playbook をダウンロードして再実行することで、実行ノードをアップグレードできます。
検証
receptor サービスのステータスを確認するには、次のコマンドを実行します。
sudo systemctl status receptor.service
サービスが active (running)
状態であることを確認します。
新しいノードで Playbook が正しく実行されるかどうかを確認するには、次のコマンドを実行します。
watch podman ps
関連情報
- インスタンスグループの管理の詳細は、Automation Controller ユーザーガイドの インスタンスグループの管理 セクションを参照してください。