From: Christian Pointner Date: Sat, 1 Apr 2017 02:06:29 +0000 (+0200) Subject: don't install dbus snd pam-systemd on non-systemd hosts X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=875552fe0cd3d3ba9e945af6dfd04531ed24e940;p=noc.git don't install dbus snd pam-systemd on non-systemd hosts --- diff --git a/roles/base/tasks/main.yaml b/roles/base/tasks/main.yaml index 02c1682..f93e286 100644 --- a/roles/base/tasks/main.yaml +++ b/roles/base/tasks/main.yaml @@ -42,8 +42,6 @@ - mtr-tiny - tcpdump - debian-goodies - - dbus - - libpam-systemd - lsof - haveged - ntp @@ -54,6 +52,13 @@ - file - zsh +- name: install systemd specific packages + apt: name={{ item }} state=present + with_items: + - dbus + - libpam-systemd + when: ansible_service_mgr == "systemd" + - name: install zshrc copy: src={{ item.src }} dest={{ item.dest }} mode=0640 with_items: