Skip to content

Instantly share code, notes, and snippets.

@cmsj
Last active February 5, 2024 07:47
Show Gist options
  • Save cmsj/69b214a5c2cbe6057a9d68eebf35cb0d to your computer and use it in GitHub Desktop.
Save cmsj/69b214a5c2cbe6057a9d68eebf35cb0d to your computer and use it in GitHub Desktop.
Replace getty on tty1 with bpytop, using Ansible, on Ubuntu 22.04
- name: Install bpytop
apt:
name: bpytop
state: present
- name: Create bpytop configuration directory
ansible.builtin.file:
path: /opt/bpytop
state: directory
owner: nobody
group: nogroup
mode: '0755'
- name: Add systemd override for running bpytop instead of getty on tty1
ansible.builtin.copy:
dest: /etc/systemd/system/[email protected]/override.conf
owner: root
group: root
mode: '0644'
content: |
[Unit]
Description=Run bpytop instead of getty on tty1
[Service]
Environment="HOME=/opt/bpytop"
User=nobody
Group=nogroup
ExecStart=
ExecStart=-/usr/bin/bpytop
StandardInput=tty
StandardOutput=tty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment