ansible-infra/ansible_collections/debops/debops/roles/mcli/tasks/main_env.yml
Stefan Bethke 2aed20393f
Some checks failed
/ Ansible Lint (push) Failing after 5m45s
/ Ansible Lint (pull_request) Failing after 4m59s
Vendor Galaxy Roles and Collections
2026-02-06 22:07:16 +01:00

16 lines
962 B
YAML

---
# Copyright (C) 2019 Maciej Delmanowski <drybjed@gmail.com>
# Copyright (C) 2019 DebOps <https://debops.org/>
# SPDX-License-Identifier: GPL-3.0-only
- name: Prepare mcli environment
ansible.builtin.set_fact:
mcli__env_upstream_url_release: '{{ ansible_local.mcli.release_tag
if (ansible_local.mcli.release_tag | d() and
ansible_local.mcli.release_tag.startswith("RELEASE.") and
not mcli__upstream_upgrade | bool)
else (lookup("url",
(mcli__upstream_url_mirror + mcli__upstream_platform
+ "/mc.sha256sum"))
| regex_search("mc\.RELEASE\..+$")
| regex_replace("^mc\.", "")) }}'