我正在使用ansible部署我的应用程序。我正在使用以下命令从github克隆应用程序:
- name: Deploy site files from Github repository
sudo: yes
git: [email protected]:xyz/abc.git dest=/home/{{deploy_user}}/{{app_name}} key_file=/home/ubuntu/.ssh/id_rsa accept_hostkey=yes force=yes
我想从存储库中克隆特定分支。我阅读了ansible的文档,但是找不到克隆特定分支的任何选项。它具有克隆版本而不是分支的选项。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句