Move extra_pkgs*-handling to the up2date-debian role.

This commit is contained in:
Andreas B. Mundt 2020-01-21 20:50:18 +01:00
parent e1766a7cfd
commit 29fb8f9420
4 changed files with 22 additions and 28 deletions

View file

@ -15,3 +15,23 @@
apt:
name: etckeeper
state: latest
- name: install extra packages from stable
apt:
name: "{{ extra_pkgs }}"
state: latest
when: extra_pkgs|length
- name: add {{ ansible_distribution_release }}-backports
apt_repository:
repo: deb http://deb.debian.org/debian/ {{ ansible_distribution_release }}-backports main
state: present
update_cache: yes
when: extra_pkgs_bpo|length
- name: install extra packages from backports
apt:
name: "{{ extra_pkgs_bpo }}"
state: latest
default_release: "{{ ansible_distribution_release }}-backports"
when: extra_pkgs_bpo|length