blob: 0ededc5b447d840f82bb4f5499fbe8d292740b8a [file] [log] [blame]
Mohammed Naserf75ab072024-04-02 12:55:10 -04001# Copyright (c) 2024 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15- name: Finalize Molecule tests
16 hosts: all
17 tasks:
18 # NOTE(mnaser): Since we need to run Molecule using `sudo` because
19 # of a bug with the Kubernetes collection, we need to
20 # restore the permissions of the repository to the
21 # user that is running the tests.
22 - name: Fix permissions for repository
23 become: true
24 ansible.builtin.file:
25 path: "{{ zuul.project.src_dir }}"
26 state: directory
27 recurse: yes
28 owner: "{{ ansible_user }}"
29 group: "{{ ansible_user }}"