Skip to content

Commit e3a35e6

Browse files
committed
We want our primary user to have shell linger ability using systemd
1 parent e2798c5 commit e3a35e6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

roles/desktop/tasks/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
when: host_has_radeon | default(false)
7474
become: true
7575

76+
- name: "allow {{ admin_user }} shell to linger"
77+
command:
78+
cmd: "loginctl enable-linger {{ admin_user }}"
79+
creates: "/var/lib/systemd/linger/{{ admin_user }}"
80+
become: true
81+
7682
# https://www.reddit.com/r/linuxadmin/comments/fbfc6w/how_to_wrap_my_firefox_process_in_a_cgroup_to/
7783
# https://lists.luv.asn.au/pipermail/luv-main/2020-December/011334.html (firejail other suggestion)
7884
- name: Setup earlyoom for desktops (unset default)

vars/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
admin_user: tconnors
23
mgmt_hosts: "{{ query('inventory_hostnames', 'all') | map('extract', hostvars) | selectattr('host_is_mgmt', 'true') | map(attribute='inventory_hostname') }}"
34
# disabled for the time being so we don't need to pull in an up-to-date version of the community.general collection via requirements.yml
45
# mgmt_host_ips: "{{ query('community.general.dig', *mgmt_hosts, fail_on_error=true) }}"
@@ -17,7 +18,7 @@
1718
deb_release: "{{ debian_codename | default('bookworm') }}"
1819
ceph_repo: reef bookworm no-subscription # was quincy bullseye main
1920
smtp_server: smtp.rather.puzzling.org
20-
smtp_root_alias: tconnors
21+
smtp_root_alias: "{{ admin_user }}"
2122
smtp_aliases: |2
2223
backuppc: root
2324
adsl: root

0 commit comments

Comments
 (0)