mask journald
This commit is contained in:
parent
384c524416
commit
dd0ced3da6
7
roles/container/defaults/main.yml
Normal file
7
roles/container/defaults/main.yml
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user