From 875552fe0cd3d3ba9e945af6dfd04531ed24e940 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 1 Apr 2017 04:06:29 +0200 Subject: [PATCH] don't install dbus snd pam-systemd on non-systemd hosts --- roles/base/tasks/main.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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: -- 1.7.10.4