-3
我是个新手。我正在尝试自动部署。我可以手动执行此操作。不知道如何可以通过Ansible如何通过ansible将ssh密钥添加到位桶账户?
我是个新手。我正在尝试自动部署。我可以手动执行此操作。不知道如何可以通过Ansible如何通过ansible将ssh密钥添加到位桶账户?
实现当有一个REST的API使用uri module
如果您需要更多的帮助,你应该提供更多的细节。
找到一个更好的方法做它 -
- name: Upload ssh key to the Instance
copy: src=yourSrc/.ssh/id_rsa_bitbucket dest=/yourDest/.ssh/id_rsa_bitbucket mode=600
- name: Clone the git repo using GIT_SSH
git: repolink dest=dest key_file=yourDest/.ssh/id_rsa_bitbucket accept_hostkey=true clone=yes force=yes
请参阅[如何我问一个很好的问题?(http://stackoverflow.com/help/how-to-ask)。 –