Move extra_pkgs*-handling to the up2date-debian role.
This commit is contained in:
parent
e1766a7cfd
commit
29fb8f9420
4 changed files with 22 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue