我正在使用Ansible部署我的应用程序。我正在使用以下命令从GitHub克隆应用程序:
- name: Deploy site files from Github repository
sudo: yes
git: repo=git@github.com:xyz/abc.git dest=/home/{{deploy_user}}/{{app_name}} key_file=/home/ubuntu/.ssh/id_rsa accept_hostkey=yes force=yes
我想从代码库中克隆一个特定的分支。我阅读了ansible的文档,但找不到克隆特定分支的选项。它有一个克隆版本的选项,但没有分支。