Last active
February 5, 2024 07:47
-
-
Save cmsj/69b214a5c2cbe6057a9d68eebf35cb0d to your computer and use it in GitHub Desktop.
Replace getty on tty1 with bpytop, using Ansible, on Ubuntu 22.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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