1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00

Improve vars on template

This commit is contained in:
L3D 2023-07-31 17:36:20 +02:00
parent 28ec7b3293
commit 1e445e9930
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 10 additions and 4 deletions

View file

@ -22,6 +22,10 @@ By default it will also add the [ETH Zürich Debian Packages Mirror](https://deb
| ``l3d_pkgs__ethz_contrib`` | ``true`` | contrib packages contain DFSG-compliant software | | ``l3d_pkgs__ethz_contrib`` | ``true`` | contrib packages contain DFSG-compliant software |
| ``l3d_pkgs__ethz_non_free`` | ``true`` | non-free contains software that does not comply with the DFSG. | | ``l3d_pkgs__ethz_non_free`` | ``true`` | non-free contains software that does not comply with the DFSG. |
| ``l3d_pkgs__ethz_non_free_firmware`` | ``true`` | contains non-free-firmware packages | | ``l3d_pkgs__ethz_non_free_firmware`` | ``true`` | contains non-free-firmware packages |
| ``l3d_pkgs__ethz_security`` | ``true`` | Inofficial Debian Security Mirror |
| ``l3d_pkgs__ethz_updates`` | ``true`` | Updates Mirror |
| ``l3d_pkgs__ethz__backports`` | ``true`` | Backports Mirror |
| ``submodules_versioncheck`` | ``false`` | Enable simple versioncheck to prevent running old versions of this role | | ``submodules_versioncheck`` | ``false`` | Enable simple versioncheck to prevent running old versions of this role |
Contributing Contributing

View file

@ -4,7 +4,9 @@ l3d_pkgs__adding_ethz: true
l3d_pkgs__ethz_contrib: true l3d_pkgs__ethz_contrib: true
l3d_pkgs__ethz_non_free: true l3d_pkgs__ethz_non_free: true
l3d_pkgs__ethz_non_free_firmware: true l3d_pkgs__ethz_non_free_firmware: true
l3d_pkgs__ethz_security: true
l3d_pkgs__ethz_updates: true
l3d_pkgs__ethz__backports: true
# Methods for updating Packages # Methods for updating Packages
# set this to latest for updating packages managed by this role # set this to latest for updating packages managed by this role

View file

@ -26,7 +26,7 @@ deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }} main
{%- endif -%} {%- endif -%}
{{- '\n\n' -}} {{- '\n\n' -}}
{%- if base__pkg_security | bool -%} {%- if l3d_pkgs__ethz_security | bool -%}
# Inofficial Debian Security Mirror # Inofficial Debian Security Mirror
{% if ansible_distribution_major_version >= '11' -%} {% if ansible_distribution_major_version >= '11' -%}
deb https://security.debian.ethz.ch/ {{ ansible_distribution_release }}-security main deb https://security.debian.ethz.ch/ {{ ansible_distribution_release }}-security main
@ -60,7 +60,7 @@ deb-src https://security.debian.ethz.ch/ {{ ansible_distribution_release }}/upda
{{- '\n\n' -}} {{- '\n\n' -}}
{%- endif -%} {%- endif -%}
{%- if base__pkg_updates -%} {%- if l3d_pkgs__ethz_updates -%}
# {{ ansible_distribution_release }}-updates, previously known as 'volatile' # {{ ansible_distribution_release }}-updates, previously known as 'volatile'
deb https://debian.ethz.ch/debian {{ ansible_distribution_release }}-updates main deb https://debian.ethz.ch/debian {{ ansible_distribution_release }}-updates main
{%- if l3d_pkgs__ethz_contrib | bool -%} {%- if l3d_pkgs__ethz_contrib | bool -%}
@ -86,7 +86,7 @@ deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-updates
{{- '\n\n' -}} {{- '\n\n' -}}
{%- endif -%} {%- endif -%}
{%- if base__pkg_backports -%} {%- if l3d_pkgs__ethz__backports -%}
# {{ ansible_distribution_release }}-backports # {{ ansible_distribution_release }}-backports
deb https://debian.ethz.ch/debian {{ ansible_distribution_release }}-backports main deb https://debian.ethz.ch/debian {{ ansible_distribution_release }}-backports main
{%- if l3d_pkgs__ethz_contrib | bool -%} {%- if l3d_pkgs__ethz_contrib | bool -%}