Debian Codegraph @

ansible_collections/community/sops/roles/install/tasks/system.yml

raw
1 ---
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4 # SPDX-FileCopyrightText: 2022, Felix Fontein
5
6 - name: Make sure that SOPS can be installed from system packages
7 ansible.builtin.fail:
8 msg: >-
9 SOPS cannot be installed from system packages for
10 {{ _community_sops_install_facts.distribution }} {{ _community_sops_install_facts.distribution_version }}.
11 when: not _community_sops_install_system_has_system
12
13 - name: Make sure that systems only supporting 'latest' are not told to install another version
14 ansible.builtin.fail:
15 msg: >-
16 SOPS version {{ sops_version }} was requested, but we can only install latest SOPS from system packages.
17 when: sops_version != 'latest' and _community_sops_install_system_has_system_latest_only
18
19 - name: Set variables
20 ansible.builtin.set_fact:
21 _community_sops_install_system_packages_actual: >-
22 {{ _community_sops_install_system_packages + _community_sops_install_system_packages_system }}
23 _community_sops_install_system_packages_unsigned_actual: >-
24 {{ _community_sops_install_system_packages_unsigned + _community_sops_install_system_packages_unsigned_system }}
25 _community_sops_install_system_package_deb_actual: >-
26 {{ _community_sops_install_system_package_deb_system }}