blob: 2d2511abb26d12e9b6ffc6befdad1b7f3d545e45 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
---
- name: Disable getty@tty1
systemd:
name: getty@tty1.service
enabled: no
state: stopped
when: not chroot
- name: '- when in chroot'
command: systemctl disable getty@tty1.service
args:
removes: '/etc/systemd/system/getty.target.wants/getty@tty1.service'
when: chroot|bool
- name: Enable serial-getty@ttyS0
systemd:
name: serial-getty@ttyS0.service
enabled: yes
when: not chroot
- name: '- when in chroot'
command: systemctl enable serial-getty@ttyS0.service
args:
creates: '/etc/systemd/system/getty.target.wants/serial-getty@ttyS0.service'
when: chroot|bool
# vim: set ts=2 sw=2 et:
|