From 05464a0ff7deaa621263c0a8d5c8de7de96794f8 Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Fri, 10 Sep 2021 11:06:43 -0500 Subject: [PATCH] Ensure we set perms on htpasswd file to avoid permissions errors (#75679) --- .../subversion/roles/subversion/tasks/setup.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/integration/targets/subversion/roles/subversion/tasks/setup.yml b/test/integration/targets/subversion/roles/subversion/tasks/setup.yml index cab9151ace6..54f68340864 100644 --- a/test/integration/targets/subversion/roles/subversion/tasks/setup.yml +++ b/test/integration/targets/subversion/roles/subversion/tasks/setup.yml @@ -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']