mask journald

This commit is contained in:
Jörg Thalheim 2014-08-18 10:12:20 +02:00
parent 384c524416
commit dd0ced3da6
2 changed files with 16 additions and 6 deletions

View File

@ -0,0 +1,7 @@
masked_services:
- systemd-journald-dev-log.socket
- systemd-journald.socket
- systemd-journald.service
- systemd-logind.service
- getty.target
- systemd-journal-flush.service

View File

@ -4,9 +4,12 @@
pacman: update_cache=yes
- name: install htop
pacman: name=htop state=present
- name: Disable getty
file: src=/dev/null dest=/etc/systemd/system/getty.target state=link
- name: Disable logind
file: src=/dev/null dest=/etc/systemd/system/systemd-logind.service state=link
- name: Disable logind
service: name=systemd-logind state=stopped enabled=no
- name: Mask services
file: src=/dev/null dest=/etc/systemd/system/{{ item }} state=link
with_items: masked_services
- name: Stop services
service: name={{ item }} state=stopped enabled=no
with_items: masked_services
- mount: name=/run/systemd/journal/ src=/mnt/journal fstype=none opts=bind,ro state=present