16 lines
962 B
YAML
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\.", "")) }}'
|