From d6b836e7233081c150bf86d4f46926c9c353ded7 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Tue, 12 Nov 2019 10:00:45 +0000 Subject: [PATCH] Start XDM and disable console getty --- roles/distro-gui/tasks/netbsd.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/distro-gui/tasks/netbsd.yml b/roles/distro-gui/tasks/netbsd.yml index 7b4abea..da99ac0 100644 --- a/roles/distro-gui/tasks/netbsd.yml +++ b/roles/distro-gui/tasks/netbsd.yml @@ -4,3 +4,15 @@ pkgin: name: firefox,motif,vim-motif,xlockmore-lite state: present +- name: Enable xdm + become: true + lineinfile: + path: /etc/rc.conf + regexp: ^xdm=.* + line: xdm=YES +- name: Disable console getty + become: true + lineinfile: + path: /etc/ttys + regexp: ^console\s+ + line: 'console "/usr/libexec/getty Pc" vt100 off secure'