1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00

Merge pull request #14 from roles-ansible/backports

Adding optional support for debian backports
This commit is contained in:
L3D 2022-04-04 14:29:37 +02:00 committed by GitHub
commit 544d59bce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 11 deletions

View file

@ -2,11 +2,7 @@
name: Ansible check debian:stable name: Ansible check debian:stable
# yamllint disable-line rule:truthy # yamllint disable-line rule:truthy
on: on: [push, pull_request]
push:
branches: '*'
pull_request:
branches: '*'
jobs: jobs:
build: build:

View file

@ -17,10 +17,6 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Lint Ansible Playbook - name: Lint Ansible Playbook
uses: ansible/ansible-lint-action@master uses: ansible/ansible-lint-action@v6
with: with:
targets: "." targets: "."
# [required]
# Paths to ansible files (i.e., playbooks, tasks, handlers etc..)
args: ""
# [optional]

View file

@ -9,6 +9,7 @@ base__add_ethz: true
# add nonfree/firmware packages? # add nonfree/firmware packages?
base__pkg_non_free_firmware: true base__pkg_non_free_firmware: true
base__pkg_contrib: true base__pkg_contrib: true
base__pkg_backports: false
# add security repo # add security repo
base__pkg_security: true base__pkg_security: true

View file

@ -60,6 +60,26 @@ deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-updates
{{- '\n\n' -}} {{- '\n\n' -}}
{%- endif -%} {%- endif -%}
{%- if base__pkg_backports -%}
# {{ ansible_distribution_release }}-backports
deb https://debian.ethz.ch/debian {{ ansible_distribution_release }}-backports main
{%- if base__pkg_contrib | bool -%}
{{- ' contrib' -}}
{%- endif -%}
{%- if base__pkg_non_free_firmware | bool -%}
{{- ' non-free' -}}
{%- endif -%}
{{- '\n' -}}
deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-backports main
{%- if base__pkg_contrib | bool -%}
{{- ' contrib' -}}
{%- endif -%}
{%- if base__pkg_non_free_firmware | bool -%}
{{- ' non-free' -}}
{%- 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/
# Or #isgphys on irc.phys.ethz.ch # Or #isgphys on irc.phys.ethz.ch

View file

@ -59,6 +59,26 @@ deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-updates
{{- '\n\n' -}} {{- '\n\n' -}}
{%- endif -%} {%- endif -%}
{%- if base__pkg_backports -%}
# {{ ansible_distribution_release }}-backports
deb https://debian.ethz.ch/debian {{ ansible_distribution_release }}-backports main
{%- if base__pkg_contrib | bool -%}
{{- ' contrib' -}}
{%- endif -%}
{%- if base__pkg_non_free_firmware | bool -%}
{{- ' non-free' -}}
{%- endif -%}
{{- '\n' -}}
deb-src https://debian.ethz.ch/debian {{ ansible_distribution_release }}-backports main
{%- if base__pkg_contrib | bool -%}
{{- ' contrib' -}}
{%- endif -%}
{%- if base__pkg_non_free_firmware | bool -%}
{{- ' non-free' -}}
{%- 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/
# Or #isgphys on irc.phys.ethz.ch # Or #isgphys on irc.phys.ethz.ch

View file

@ -62,5 +62,5 @@ base__linux_packages:
- bzip2 - bzip2
- jq - jq
playbook_version_number: 9017 playbook_version_number: 9018
playbook_version_path: 'base-packages_roles-ansible_github.version' playbook_version_path: 'base-packages_roles-ansible_github.version'