torwachter: rm d3 key as he does no longer want access as told by ruru. Also better...
[noc.git] / ansible / roles / base / tasks / 04systemd.yml
1 ---
2 - name: install systemd specific packages
3   apt:
4     state: present
5     name:
6       - dbus
7       - libpam-systemd
8
9 - name: set systemd-related environment variables
10   copy:
11     src: xdg_runtime_dir.sh
12     dest: /etc/profile.d/xdg_runtime_dir.sh
13     mode: 0644
14
15
16 - when: ansible_distribution == "Ubuntu"
17   block:
18     - name: workaround console-setup race condition (1/2)
19       file:
20         path: /etc/systemd/system/console-setup.service.d/
21         state: directory
22
23     - name: workaround console-setup race condition (2/2)
24       copy:
25         dest: /etc/systemd/system/console-setup.service.d/override.conf
26         mode: 0644
27         content: |
28           [Unit]
29           After=systemd-tmpfiles-setup.service
30         # no need to reload systemd, it is only there to fix a boot-time race-condition