私は、anacible-galaxy(v2.0.0.2)を使用して、requirements.ymlファイルを通してBitbucket上にソースコードを持つ役割をインストールしています。しかし、bitbucket.orgのコードを秘密鍵でチェックアウトすることはできませんでした。ここにエラーメッセージと私のrequirements.yml
の内容があります。gitbucket.orgのanacle-galaxyとgit clone
いずれかが適切なrequirements.yml
aniable-galaxy 2.0.0.2のファイル形式ですか?
+ ansible-galaxy -vvv install --force --role-file ansible/requirements.yml --roles-path ./ansible/roles
Using /etc/ansible/ansible.cfg as config file
Opened /tmp/.ansible_galaxy
found role {'scm': 'git', 'src': '[email protected]:myrepo/nginx.git', 'version': 'latest', 'name': 'nginx'} in yaml file
Installing role nginx
[WARNING]: - nginx was NOT installed successfully: - command git checkout
latest failed in directory /tmp/tmpQRZc8j (rc=1)
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
[requirements.yml]
- name: nginx
src: [email protected]:myrepo/nginx.git
scm: git
version: latest
accept_hostkey: yes
key_file: /tmp/.ssh/id_rsa