Krikri::PluginHelpers::FetchTempfile
FetchTempfile - the staged-download tempfile ansible's fetch_file (ansible/module_utils/urls.py) creates:
tempfile.NamedTemporaryFile(dir=module.tmpdir, prefix=file_prefix, suffix=file_ext, delete=False)
with prefix/suffix from _split_multiext(basename(url), count=2) and the 8-character middle drawn from Python tempfile's _RandomNameSequence charset (lowercase digits and underscore). The staged name is not cosmetic: dnf echoes the file back in its own error text, so issue #818 surfaced ansible's "Public key for epel-release-latest-9.noarch<rand8>.rpm is not installed" against an opaque ".krikri-playbook-rpm-<rand8>.rpm" from a prefix of krikri's own invention. Own file so a spec can require it directly (same shape as MultiextSplit).
Constants
The underscore counts: Python's _RandomNameSequence includes it, and krikri-role-tester's rpm-download-tmp mask normalizes exactly this 8-character middle from that charset.