subversion – Deploys a subversion repository
subversion – Deploys a subversion repository
Synopsis
- Deploy given repository URL / revision to dest. If dest exists, update to the specified revision, otherwise perform a checkout.
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
checkout boolean added in 2.3 |
|
If |
dest - / required |
Absolute path where the repository should be deployed. | |
executable - added in 1.4 |
Path to svn executable to use. If not supplied, the normal mechanism for resolving binary paths will be used. | |
export boolean added in 1.6 |
|
If |
force boolean |
|
If |
in_place boolean added in 2.6 |
|
If the directory exists, then the working copy will be checked-out over-the-top using svn checkout --force; if force is specified then existing files with different content are reverted |
password - |
| |
repo - / required |
The subversion URL to the repository.
| |
revision - |
Default: "HEAD" |
Specific revision to checkout.
|
switch boolean added in 2.0 |
|
If |
update boolean added in 2.3 |
|
If |
username - |
|
Notes
Note
- Requires svn to be installed on the client.
- This module does not handle externals.
Examples
- name: Checkout subversion repository to specified folder
subversion:
repo: svn+ssh://an.example.org/path/to/repo
dest: /src/checkout
- name: Export subversion directory to folder
subversion:
repo: svn+ssh://an.example.org/path/to/repo
dest: /src/export
- name: Get information about the repository whether or not it has already been cloned locally
- subversion:
repo: svn+ssh://an.example.org/path/to/repo
dest: /srv/checkout
checkout: no
update: no
Status
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Core Team. [core]
Red Hat Support
More information about Red Hat’s support of this module is available from this Red Hat Knowledge Base article.
Authors
- Dane Summers (@dsummersl) <[email protected]>
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/subversion_module.html