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.