Use provided ansible variable to determine debian release.
This commit is contained in:
parent
f158d8cae1
commit
ea36c9beaf
5 changed files with 21 additions and 9 deletions
|
@ -1,15 +1,15 @@
|
|||
- name: install extra packages from stable
|
||||
apt: name={{ extra_pkgs }} state=latest
|
||||
|
||||
- name: add {{ deb_release }}-backports
|
||||
- name: add {{ ansible_distribution_release }}-backports
|
||||
apt_repository:
|
||||
repo: deb http://deb.debian.org/debian/ {{ deb_release }}-backports main
|
||||
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={{ deb_release }}-backports
|
||||
apt: name={{ extra_pkgs_bpo }} state=latest default_release={{ ansible_distribution_release }}-backports
|
||||
when: extra_pkgs_bpo|length
|
||||
|
||||
## Check which display manager is used:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue