link mounted journald /dev/log
This commit is contained in:
parent
f7d1f18132
commit
55fa44af52
7
roles/container/files/link-dev-log.service
Normal file
7
roles/container/files/link-dev-log.service
Normal file
@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Symlink /dev/log to local journald
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/ln -s /run/systemd/journal/dev-log /dev/log
|
@ -39,4 +39,9 @@
|
||||
- name: backup directory
|
||||
file: path=/root/.vim.backupdir state=directory
|
||||
|
||||
- name: create link-dev-log.service
|
||||
copy: src=link-dev-log.service dest=/etc/systemd/system/link-dev-log.service mode=0644
|
||||
- name: enable link-dev-log.service
|
||||
file: src=/etc/systemd/system/link-dev-log.service dest=/etc/systemd/system/multi-user.target.wants/link-dev-log.service state=link
|
||||
|
||||
- include: ssh.yml
|
||||
|
Loading…
Reference in New Issue
Block a user