第2章 Private Automation Hub の表示アクセスのみの有効化
表示アクセスのみを有効にすると、ユーザーがログインなしに Private Automation Hub でコレクションまたは名前空間を表示する権限を付与できます。表示アクセスのみでは、承認されていないユーザーとコンテンツを共有でき、プライベート自動化ハブですべてを編集するパーミッションなしに、ソースコードのみを表示またはダウンロードする機能を制限できます。
Red Hat Ansible Automation Platform インストーラーにあるインベントリーファイルを編集して、Private Automation Hub の表示アクセスのみを有効にします。
-
Ansible Automation Platform の新規インスタンスをインストールする場合は、以下の手順に従って、他のインストール設定と共に
automationhub_enable_unauthenticated_collection_accessパラメーターおよびautomationhub_enable_unauthenticated_collection_downloadパラメーターをinventoryファイルに追加します。 -
既存の Ansible Automation Platform インストールを更新して表示アクセスのみを追加する場合は、
automationhub_enable_unauthenticated_collection_accessパラメーターおよびautomationhub_enable_unauthenticated_collection_downloadパラメーターをinventoryファイルに追加してから、setup.shスクリプトを実行して更新を適用します。
手順
インストーラーに移動します。
- バンドルのインストーラー
cd ansible-automation-platform-setup-bundle-<latest-version>
$ cd ansible-automation-platform-setup-bundle-<latest-version>Copy to Clipboard Copied! Toggle word wrap Toggle overflow - オンラインインストーラー
cd ansible-automation-platform-setup-<latest-version>
$ cd ansible-automation-platform-setup-<latest-version>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
-
テキストエディターで
inventoryファイルを開きます。 以下の例のように、
automationhub_enable_unauthenticated_collection_accessパラメーターおよびautomationhub_enable_unauthenticated_collection_downloadパラメーターをインベントリーファイルに追加し、両方をTrueに設定します。[all:vars] automationhub_enable_unauthenticated_collection_access = True automationhub_enable_unauthenticated_collection_download = True
[all:vars] automationhub_enable_unauthenticated_collection_access = True1 automationhub_enable_unauthenticated_collection_download = True2 Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
setup.shスクリプトを実行します。インストーラーは、Automation Hub の表示アクセスのみを有効にします。
検証
インストールが完了したら、ログインせずに Automation Hub でコンテンツを表示してみると、Private Automation Hub での表示のみを利用できることが確認できます。
- Private Automation Hub に移動します。
- ログイン画面で、[View only mode] ボタンをクリックします。
ログインせずに、名前空間やコレクションなど、Automation Hub でコンテンツを表示できることを確認します。