Ansible-install svn and ansible-svn

Source: Internet
Author: User

Ansible-install svn and ansible-svn

Task:

Associate multiple machines with ansible

Familiar with the python ansible API, How can I obtain the execution progress of the playbook through the interface?

Python obtains the svn version number.


1. Install svn

Ubuntu SMP Thu Jan 15 20:21:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Use sudo apt-get install subversion

2. View svn usage


Configure svn after installation

3. Create a version library directory


Created the version library directory svntest.

4. Create a version Library


5. Modify svn version library configuration information


Three files are displayed.

The authz file is a permission control file.

The passwd file is an account password file.

The svnserve. conf file is the svn service configuration file.

5.1 set the account password

The format is as follows: account = Password


5.2 Set permissions


Prod has read and write permissions

5.3 modify the svnserve. conf file

Open the following comments:

Anon-access = read # anonymous user readable

Auth-access = write # authorized users can write

Passwo-db = passwd # Which file is used as the account file

Authz-db = authz # Which file is used as the permission File

Reaml =/var/svn/svntest # Name of the authentication space, directory of the version Library

6. Start the svn version Library


Started successfully

7. Test svn


Run the file checkout to the local directory.


You can perform svn operations such as add, commit, and update.

If

The prompt here is that the file txn-current-lock cannot be opened.

This is because the group and owner of the version library are both root.


Modify it to prod.


Committed to version library commit







Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.