Ensure we set perms on htpasswd file to avoid permissions errors (#75679)

pull/75690/head
Matt Martz 3 years ago committed by GitHub
parent 7cbb53fe9a
commit 05464a0ff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,13 +44,6 @@
chdir: '{{ subversion_server_dir }}'
creates: '{{ subversion_server_dir }}/{{ subversion_repo_name }}'
- name: apply ownership for all SVN directories
file:
path: '{{ subversion_server_dir }}'
owner: '{{ apache_user }}'
group: '{{ apache_group }}'
recurse: True
- name: add test user to htpasswd for Subversion site
htpasswd:
path: '{{ subversion_server_dir }}/svn-auth-users'
@ -58,6 +51,13 @@
password: '{{ subversion_password }}'
state: present
- name: apply ownership for all SVN directories
file:
path: '{{ subversion_server_dir }}'
owner: '{{ apache_user }}'
group: '{{ apache_group }}'
recurse: True
- name: start test Apache SVN site - non Red Hat
command: apachectl -k start -f {{ subversion_server_dir }}/subversion.conf
when: ansible_os_family not in ['RedHat', 'Alpine']

Loading…
Cancel
Save