Author: | Dane Summers, njharman@gmail.com |
---|
Deploy given repository URL / revision to dest. If dest exists, update to the specified revision, otherwise perform a checkout.
parameter | required | default | choices | comments |
---|---|---|---|---|
dest | yes | Absolute path where the repository should be deployed. | ||
executable | no | Path to svn executable to use. If not supplied, the normal mechanism for resolving binary paths will be used. (added in Ansible 1.4) | ||
export | no | no |
|
If yes , do export instead of checkout/update. (added in Ansible 1.6) |
force | no | yes |
|
If yes , modified files will be discarded. If no , module will fail if it encounters modified files. |
password | no | --password parameter passed to svn when svn is less than version 1.10.0. This is not secure and the password will be leaked to argv.--password-from-stdin parameter when svn is greater or equal to version 1.10.0. | ||
repo | yes | The subversion URL to the repository. | ||
revision | no | HEAD | Specific revision to checkout. | |
username | no | --username parameter passed to svn. |
# Checkout subversion repository to specified folder.
- subversion: repo=svn+ssh://an.example.org/path/to/repo dest=/src/checkout
# Export subversion directory to folder
- subversion: repo=svn+ssh://an.example.org/path/to/repo dest=/src/export export=True
Note
Requires svn to be installed on the client.