apt norecommends file permission less strict
[noc.git] / roles / base / tasks / main.yaml
index 02c1682..2b82e4f 100644 (file)
@@ -29,7 +29,7 @@
     exclusive: yes
 
 - name: disable apt suggests and recommends
-  copy: src=02no-recommends dest=/etc/apt/apt.conf.d/ mode=0640
+  copy: src=02no-recommends dest=/etc/apt/apt.conf.d/ mode=0644
 
 - name: install basic packages
   apt: name={{ item }} state=present
@@ -42,8 +42,6 @@
     - mtr-tiny
     - tcpdump
     - debian-goodies
-    - dbus
-    - libpam-systemd
     - lsof
     - haveged
     - ntp
     - 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: