TarballからAnsible-Galaxyをインストールすると、Galaxy.ansible.comへの接続中にクラッシュします。

TarballからAnsible-Galaxyをインストールすると、Galaxy.ansible.comへの接続中にクラッシュします。

ansible-galaxyを介してansibleコレクションをインストールしようとしています。しかし、この段階でプログラムが停止しました。Galaxy_serverへの初期接続:https://galaxy.ansible.com問題がどこにあるのかわかりません。サーバー接続に問題があるのではないかと思って、手動でコレクションをダウンロードしてタールボールとして使用できるようにしました。しかし、これは何も変更しません。私が逃したかもしれないという考えがありますか?

ansible-galaxy collection install ~/Download/ansible.posix-1.3.0.tar.gz -vvvv
ansible-galaxy 2.5.1
  config file = /home/philipp/.ansible.cfg
  configured module search path = [u'/home/philipp/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible-galaxy
  python version = 2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0]
Using /home/philipp/.ansible.cfg as config file
Opened /home/philipp/.ansible_galaxy
Processing role collection 
Opened /home/philipp/.ansible_galaxy
Initial connection to galaxy_server: https://galaxy.ansible.com

修正する

もちろん詰まっていませんが、非常に遅いです。質問を入力すると、プログラムが続行されます。

ansible-galaxy 2.5.1
  config file = /home/philipp/.ansible.cfg
  configured module search path = [u'/home/philipp/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible-galaxy
  python version = 2.7.17 (default, Feb 27 2021, 15:10:58) [GCC 7.5.0]
Using /home/philipp/.ansible.cfg as config file
Opened /home/philipp/.ansible_galaxy
Processing role collection 
Opened /home/philipp/.ansible_galaxy
Initial connection to galaxy_server: https://galaxy.ansible.com
Base API: https://galaxy.ansible.com/api/v1
- downloading role 'collection', owned by 
https://galaxy.ansible.com/api/v1/roles/?owner__username=&name=collection
 [WARNING]: - collection was NOT installed successfully: Content has no field named 'owner'

ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

ベストアンサー1

解決策:Ansibleを次に更新してください。2.9.26

警告を検索した後、私のAnsibleバージョンが古すぎるという事実を発見しました。 Ansibleバージョンを更新した後、インストール2.9.26ansible-galaxy collection install ansible.posix正しく機能しているようです。

おすすめ記事