.. _git: git `````````````````````````````` .. versionadded:: 0.0.1 Manage git checkouts of repositories to deploy files or software. .. raw:: html
parameter | required | default | choices | comments |
---|---|---|---|---|
repo | yes | git, ssh, or http protocol address of the git repository. | ||
dest | yes | Absolute path of where the repository should be checked out to. | ||
version | no | HEAD | What version of the repository to check out. This can be the git SHA, the literal string HEAD, branch name, or a tag name. | |
force | no | yes |
|
(New in 0.7) If yes, any modified files in the working repository will be discarded. Prior to 0.7, this was always 'yes' and could not be disabled. |
remote | no | origin | Name of the remote branch. |
Example git checkout from Ansible Playbooks
git repo=git://foosball.example.org/path/to/repo.git dest=/srv/checkout version=release-0.22