文件操作 - github.yml
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3.12/site-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 }}
修改文件时间
将文件时间修改为当前时间的前一年
删除文件