subversion - Deploys a subversion repository.

Author:Dane Summers, njharman@gmail.com

Synopsis

Deploy given repository URL / revision to dest. If dest exists, update to the specified revision, otherwise perform a checkout.

Options

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
        If True, do export instead of checkout/update. (added in Ansible 1.6)
        force no yes
        • yes
        • no
        If yes, modified files will be discarded. If no, module will fail if it encounters modified files.
        password no
          --password parameter passed to svn.
          repo yes
            The subversion URL to the repository.
            revision no HEAD
              Specific revision to checkout.
              username no
                --username parameter passed to svn.

                Examples


                # 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.

                Table Of Contents

                Previous topic

                hg - Manages Mercurial (hg) repositories.

                Next topic

                System Modules