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 pacman: update_cache=yes
- name: install htop - name: install htop
pacman: name=htop state=present pacman: name=htop state=present
- name: Disable getty
file: src=/dev/null dest=/etc/systemd/system/getty.target state=link - name: Mask services
- name: Disable logind file: src=/dev/null dest=/etc/systemd/system/{{ item }} state=link
file: src=/dev/null dest=/etc/systemd/system/systemd-logind.service state=link with_items: masked_services
- name: Disable logind - name: Stop services
service: name=systemd-logind state=stopped enabled=no 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