Build Windows Templates in RHV
This commit is contained in:
16
roles/systemli.apt_repositories/templates/pref.j2
Normal file
16
roles/systemli.apt_repositories/templates/pref.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
# Packages with pin priority = 100
|
||||
# causes a version to be installed unless there is a version available
|
||||
# belonging to some other distribution or the installed version is more
|
||||
# recent
|
||||
|
||||
Package: *
|
||||
Pin: origin "{{ _config.url|urlsplit('hostname') }}"
|
||||
Pin-Priority: 100
|
||||
{% if _config.packages is defined %}
|
||||
{% for pkg in _config.packages %}
|
||||
|
||||
Package: {{ pkg }}
|
||||
Pin: origin "{{ _config.url|urlsplit('hostname') }}"
|
||||
Pin-Priority: 500
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
1
roles/systemli.apt_repositories/templates/repo.list.j2
Normal file
1
roles/systemli.apt_repositories/templates/repo.list.j2
Normal file
@@ -0,0 +1 @@
|
||||
deb [signed-by=/usr/share/keyrings/{{ _name }}.gpg] {{ _config.url }} {{ _config.suites }}
|
||||
@@ -0,0 +1,8 @@
|
||||
Types: {{ _config.types|default('deb') }}
|
||||
URIs: {{ _config.url }}
|
||||
Suites: {{ _config.suites|default(ansible_distribution_release) }}
|
||||
Components: {{ _config.components|default('main') }}
|
||||
Signed-by: /usr/share/keyrings/{{ _name }}.gpg
|
||||
{% if _config.arch is defined %}
|
||||
Architecture: {{ _config.arch }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user