Ansible Role repo_debian_base¶
This role deploys /etc/apt/sources.list for Debian, allowing you to point the host at a custom mirror server. It is Debian-only; running it against an Ubuntu or Red Hat-family host fails because there is no matching template.
Supported Debian versions: 10, 11, 12. The version is auto-detected via ansible_facts["distribution_major_version"] and the matching template is rendered.
After deploying the sources list, the role removes any .rpmnew / .dpkg-dist / .ucf-dist siblings if lfops__remove_rpmnew_rpmsave: true is set globally. By default these files are kept.
Available since LFOps 2.0.0.
Optional Role Variables¶
repo_debian_base__mirror_url
Set the URL to a custom mirror server providing the repository. Defaults to
lfops__repo_mirror_urlto allow easily setting the same URL for allrepo_*roles. Iflfops__repo_mirror_urlis not set either, the default Debian mirrors are used.Type: String.
Default:
'{{ lfops__repo_mirror_url | default("") }}'
Example:
# optional
repo_debian_base__mirror_url: 'https://mirror.example.com'