Debian Codegraph @

ansible_collections/community/general/tests/integration/targets/setup_flatpak_remote/tasks/main.yaml

raw
1 ---
2 ####################################################################
3 # WARNING: These are designed specifically for Ansible tests #
4 # and should not be used as examples of how to write Ansible roles #
5 ####################################################################
6
7 # Copyright (c) Ansible Project
8 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
9 # SPDX-License-Identifier: GPL-3.0-or-later
10
11 - name: Set up dummy flatpak repository remote
12 when: |
13 ansible_facts.distribution == 'Fedora' or
14 ansible_facts.distribution == 'Ubuntu' and not ansible_facts.distribution_major_version | int < 16
15 block:
16 - name: Copy repo into place
17 unarchive:
18 src: repo.tar.xz
19 dest: '{{ remote_tmp_dir }}'
20 owner: root
21 group: root
22 mode: '0644'
23 - name: Create deterministic link to temp directory
24 file:
25 state: link
26 src: '{{ remote_tmp_dir }}/'
27 path: /tmp/flatpak
28 owner: root
29 group: root
30 mode: '0644'
31 notify: remove temporary flatpak link
32 become: true