2.4. コミュニティーリモートリポジトリーの設定および Ansible Galaxy コレクションの同期
を編集できます。community選択したコレクションを Ansible Galaxy からローカルの Automation Hub に同期するための リモートリポジトリー。デフォルトでは、ローカルの Automation Hub community リポジトリーは https://galaxy.ansible.com/api/ に送信されます。
前提条件
- を持っています。Modify Ansible repo content 権限。パーミッションの詳細は、Managing user access in Automation Hub を参照してください。
-
Ansible Galaxy から同期するコレクションを識別する
requirements.ymlファイルがあります。以下の例を参照してください。
requirements.yml の例
collections:
# Install a collection from Ansible Galaxy.
- name: geerlingguy.php_roles
version: 0.9.3
source: https://galaxy.ansible.com
collections:
# Install a collection from Ansible Galaxy.
- name: geerlingguy.php_roles
version: 0.9.3
source: https://galaxy.ansible.com
手順
- ローカルの Automation Hub にログインします。
- に移動します。
- をクリックRemotes タブ。
-
community リモートで、 アイコン
をクリックし、 をクリックします。
-
モーダルで をクリックし、ローカルマシンで
requirements.ymlファイルを見つけます。 - をクリックします。
モーダルが終了し、 に戻ります。Repo Management ページ。requirements.yml ファイルで識別されたコレクションを Ansible Galaxy からローカルの Automation Hub に同期できるようになりました。
- をクリックして、Ansible Galaxy および Automation Hub からコレクションを同期します。
Sync status 通知が更新されて、自動化ハブへの Ansible Galaxy コレクションの同期が完了または失敗したことが通知されます。
検証
を選択すると、同期が成功したことを確認できます。Communityコレクションのコンテンツドロップダウンリストから