jmri: add rblundon@laptop SSH key for xpra access
Adds jmri_ssh_authorized_keys_extra list to support multiple authorized keys on the jmri account. Deploys rblundon's MacBook key so xpra can connect via SSH without a password.
This commit is contained in:
@@ -22,6 +22,7 @@ jmri_lcrr_branch: "main"
|
||||
|
||||
# SSH key for jmri user (for jmri-gui X11 access — set per-host in host_vars)
|
||||
jmri_ssh_authorized_key: ""
|
||||
jmri_ssh_authorized_keys_extra: [] # additional keys (e.g. operator laptops)
|
||||
|
||||
# SSH key for jmri user → Gitea
|
||||
jmri_gitea_key: /home/jmri/.ssh/id_ed25519_gitea
|
||||
|
||||
@@ -30,6 +30,13 @@
|
||||
state: present
|
||||
when: jmri_ssh_authorized_key | length > 0
|
||||
|
||||
- name: Deploy extra SSH authorized keys for jmri user
|
||||
ansible.posix.authorized_key:
|
||||
user: "{{ jmri_user }}"
|
||||
key: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ jmri_ssh_authorized_keys_extra }}"
|
||||
|
||||
- name: Add JMRI user to dialout group (serial device access)
|
||||
ansible.builtin.user:
|
||||
name: "{{ jmri_user }}"
|
||||
|
||||
Reference in New Issue
Block a user