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

@ -1,17 +1,3 @@
- name: install extra packages from stable
apt: name={{ extra_pkgs }} state=latest
- 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
## Check which display manager is used:
- name: check if gdm3 is installed
stat: path=/etc/gdm3/daemon.conf