Chapter 2. Enabling view-only access for your private automation hub
By enabling view-only access, you can grant access for users to view collections or namespaces on your private automation hub without the need for them to log in. View-only access allows you to share content with unauthorized users while restricting their ability to only view or download source code, without permissions to edit anything on your private automation hub.
Enable view-only access for your private automation hub by editing the inventory file found on your Red Hat Ansible Automation Platform installer.
-
If you are installing a new instance of Ansible Automation Platform, follow these steps to add the
automationhub_enable_unauthenticated_collection_access
andautomationhub_enable_unauthenticated_collection_download
parameters to yourinventory
file along with your other installation configurations: -
If you are updating an existing Ansible Automation Platform installation to include view-only access, add the
automationhub_enable_unauthenticated_collection_access
andautomationhub_enable_unauthenticated_collection_download
parameters to yourinventory
file then run thesetup.sh
script to apply the updates:
Procedure
Navigate to the installer.
- Bundled installer
$ cd ansible-automation-platform-setup-bundle-<latest-version>
- Online installer
$ cd ansible-automation-platform-setup-<latest-version>
-
Open the
inventory
file with a text editor. Add the
automationhub_enable_unauthenticated_collection_access
andautomationhub_enable_unauthenticated_collection_download
parameters to the inventory file and set both toTrue
, following the example below:[all:vars] automationhub_enable_unauthenticated_collection_access = True 1 automationhub_enable_unauthenticated_collection_download = True 2
-
Run the
setup.sh
script. The installer will now enable view-only access to your automation hub.
Verification
Once the installation completes, you can verify that you have view-only access on your private automation hub by attempting to view content on your automation hub without logging in.
- Navigate to your private automation hub.
- On the login screen, click .
Verify that you are able to view content on your automation hub, such as namespaces or collections, without having to log in.