-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)。 –