mirror of
https://github.com/roles-ansible/ansible_role_packages.git
synced 2024-08-16 10:19:51 +02:00
Merge pull request #14 from roles-ansible/backports
Adding optional support for debian backports
This commit is contained in:
commit
544d59bce8
6 changed files with 44 additions and 11 deletions
6
.github/workflows/ansible-debian-stable.yml
vendored
6
.github/workflows/ansible-debian-stable.yml
vendored
|
@ -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:
|
||||||
|
|
6
.github/workflows/ansible-linting-check.yml
vendored
6
.github/workflows/ansible-linting-check.yml
vendored
|
@ -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]
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue