mirror of
https://github.com/roles-ansible/ansible_role_packages.git
synced 2024-08-16 10:19:51 +02:00
Update apt sources and template
This commit is contained in:
parent
ae99afdb57
commit
21015e054f
2 changed files with 48 additions and 103 deletions
|
@ -16,6 +16,36 @@
|
||||||
- apt-transport-https
|
- apt-transport-https
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Set ETHZ debian packages to main
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
l3d_pkgs__debian_packages_version: 'main contrib'
|
||||||
|
when:
|
||||||
|
- not l3d_pkgs__ethz_contrib | bool
|
||||||
|
- not l3d_pkgs__ethz_non_free | bool
|
||||||
|
|
||||||
|
- name: Set ETHZ debian packages to main contrib
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
l3d_pkgs__debian_packages_version: 'main contrib'
|
||||||
|
when:
|
||||||
|
- l3d_pkgs__ethz_contrib | bool
|
||||||
|
- not l3d_pkgs__ethz_non_free | bool
|
||||||
|
|
||||||
|
- name: Set ETHZ debian packages to main contrib non-free
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
l3d_pkgs__debian_packages_version: 'main contrib non-free'
|
||||||
|
when:
|
||||||
|
- l3d_pkgs__ethz_contrib | bool
|
||||||
|
- l3d_pkgs__ethz_non_free | bool
|
||||||
|
- not ansible_distribution_major_version >= '12'
|
||||||
|
|
||||||
|
- name: Set ETHZ debian packages to main contrib non-free non-free-firmware
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
l3d_pkgs__debian_packages_version: 'main contrib non-free non-free-firmware'
|
||||||
|
when:
|
||||||
|
- l3d_pkgs__ethz_contrib | bool
|
||||||
|
- l3d_pkgs__ethz_non_free | bool
|
||||||
|
- ansible_distribution_major_version >= '12'
|
||||||
|
|
||||||
- name: Add ETH zurich apt for Debian
|
- name: Add ETH zurich apt for Debian
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
@ -1,116 +1,31 @@
|
||||||
|
{{ ansible_managed | comment }}
|
||||||
# Debian mirror der ETH Zürich
|
# Debian mirror der ETH Zürich
|
||||||
# https://debian.ethz.ch/
|
# https://debian.ethz.ch/
|
||||||
# https://wiki.debianforum.de/Sources.list
|
# https://wiki.debianforum.de/Sources.list
|
||||||
|
|
||||||
# HTTPS mirror:
|
# HTTPS mirror:
|
||||||
deb https://debian.ethz.ch/debian {{ ansible_distribution_release }} main
|
deb https://debian.ethz.ch/debian {{ ansible_distribution_release }} {{ l3d_pkgs__debian_packages_version }}
|
||||||
{%- if l3d_pkgs__ethz_contrib | bool -%}
|
deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }} {{ l3d_pkgs__debian_packages_version }}
|
||||||
{{- ' contrib' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_non_free | bool -%}
|
|
||||||
{{- ' non-free' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if ansible_distribution_major_version >= '12' and l3d_pkgs__ethz_non_free_firmware | bool -%}
|
|
||||||
{{- ' non-free-firmware' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- '\n' -}}
|
|
||||||
deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }} main
|
|
||||||
{%- if l3d_pkgs__ethz_contrib | bool -%}
|
|
||||||
{{- ' contrib' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_non_free | bool -%}
|
|
||||||
{{- ' non-free' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if ansible_distribution_major_version >= '12' and l3d_pkgs__ethz_non_free_firmware | bool -%}
|
|
||||||
{{- ' non-free-firmware' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- '\n\n' -}}
|
|
||||||
|
|
||||||
{%- if l3d_pkgs__ethz_security | bool -%}
|
{% if ansible_distribution_major_version >= '11' %}
|
||||||
{{ '# Inofficial Debian Security Mirror\n' }}
|
deb https://security.debian.ethz.ch/ {{ ansible_distribution_release }}-security {{ l3d_pkgs__debian_packages_version }}
|
||||||
{%- if ansible_distribution_major_version >= '11' -%}
|
deb-src https://security.debian.ethz.ch/ {{ ansible_distribution_release }}-security {{ l3d_pkgs__debian_packages_version }}
|
||||||
deb https://security.debian.ethz.ch/ {{ ansible_distribution_release }}-security main
|
{% else %}
|
||||||
{%- else -%}
|
deb https://security.debian.ethz.ch/ {{ ansible_distribution_release }}/updates {{ l3d_pkgs__debian_packages_version }}
|
||||||
deb https://security.debian.ethz.ch/ {{ ansible_distribution_release }}/updates main
|
deb-src https://security.debian.ethz.ch/ {{ ansible_distribution_release }}/updates {{ l3d_pkgs__debian_packages_version }}
|
||||||
{%- endif -%}
|
{% endif %}
|
||||||
{%- if l3d_pkgs__ethz_contrib | bool -%}
|
|
||||||
{{- ' contrib' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_non_free | bool -%}
|
|
||||||
{{- ' non-free' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if ansible_distribution_major_version >= '12' and l3d_pkgs__ethz_non_free_firmware | bool -%}
|
|
||||||
{{- ' non-free-firmware' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- '\n' -}}
|
|
||||||
{%- if ansible_distribution_major_version >= '11' -%}
|
|
||||||
deb-src https://security.debian.ethz.ch/ {{ ansible_distribution_release }}-security main
|
|
||||||
{%- else -%}
|
|
||||||
deb-src https://security.debian.ethz.ch/ {{ ansible_distribution_release }}/updates main
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_contrib | bool -%}
|
|
||||||
{{- ' contrib' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_non_free | bool -%}
|
|
||||||
{{- ' non-free' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if ansible_distribution_major_version >= '12' and l3d_pkgs__ethz_non_free_firmware | bool -%}
|
|
||||||
{{- ' non-free-firmware' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- '\n\n' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
{%- if l3d_pkgs__ethz_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 {{ l3d_pkgs__debian_packages_version }}
|
||||||
{%- if l3d_pkgs__ethz_contrib | bool -%}
|
deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-updates {{ l3d_pkgs__debian_packages_version }}
|
||||||
{{- ' contrib' -}}
|
{% endif %}
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_non_free | bool -%}
|
|
||||||
{{- ' non-free' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if ansible_distribution_major_version >= '12' and l3d_pkgs__ethz_non_free_firmware | bool -%}
|
|
||||||
{{- ' non-free-firmware' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- '\n' -}}
|
|
||||||
deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-updates main
|
|
||||||
{%- if l3d_pkgs__ethz_contrib | bool -%}
|
|
||||||
{{- ' contrib' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_non_free | bool -%}
|
|
||||||
{{- ' non-free' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if ansible_distribution_major_version >= '12' and l3d_pkgs__ethz_non_free_firmware | bool -%}
|
|
||||||
{{- ' non-free-firmware' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- '\n\n' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
{%- if l3d_pkgs__ethz__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 {{ l3d_pkgs__debian_packages_version }}
|
||||||
{%- if l3d_pkgs__ethz_contrib | bool -%}
|
deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-backports {{ l3d_pkgs__debian_packages_version }}
|
||||||
{{- ' contrib' -}}
|
{% endif %}
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_non_free | bool -%}
|
|
||||||
{{- ' non-free' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if ansible_distribution_major_version >= '12' and l3d_pkgs__ethz_non_free_firmware | bool -%}
|
|
||||||
{{- ' non-free-firmware' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- '\n' -}}
|
|
||||||
deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-backports main
|
|
||||||
{%- if l3d_pkgs__ethz_contrib | bool -%}
|
|
||||||
{{- ' contrib' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if l3d_pkgs__ethz_non_free | bool -%}
|
|
||||||
{{- ' non-free' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{%- if ansible_distribution_major_version >= '12' and l3d_pkgs__ethz_non_free_firmware | bool -%}
|
|
||||||
{{- ' non-free-firmware' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
{{- '\n\n' -}}
|
|
||||||
{%- endif -%}
|
|
||||||
|
|
||||||
# Contact for proplems with the mirror:
|
# Contact for proplems with the mirror:
|
||||||
# https://readme.phys.ethz.ch/services/contact/
|
# https://readme.phys.ethz.ch/services/contact/
|
||||||
|
|
Loading…
Reference in a new issue