Skip to content
Snippets Groups Projects
Commit c12a9b1a authored by jurgenhaas's avatar jurgenhaas
Browse files

Optimize mode and ownership changes

parent 89171b69
No related branches found
No related tags found
No related merge requests found
......@@ -140,14 +140,21 @@
when: svnserver_master == inventory_hostname and (item.1.hooks is not defined or item.1.hooks)
- name: 'Subversion | Set permissions'
shell: chown -R sshsvn:root /var/svn
file:
path="/var/svn"
owner="sshsvn"
group="root"
recurse=yes
tags:
- UpdateSVN
- UpdateSVNRepos
changed_when: false
- name: 'Subversion | Set ownership'
shell: chmod -R g+w /var/svn
file:
path=/var/svn
mode=g+w
recurse=yes
tags:
- UpdateSVN
- UpdateSVNRepos
......
......@@ -9,7 +9,10 @@
version=stable-1.6.2
- name: 'Subversion | Change ownership of files'
command: chmod -R 777 /var/www/svnadmin/data
file:
path=/var/www/svnadmin/data
mode=777
recurse=yes
- name: 'Subversion | Copy SvnAdmin Config File'
template: src=svnadmin_config_ini
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment