-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
Arch wiki in section Start ssh-agent with systemd user proposes:
If you would like your ssh agent to run when you are logged in, regardless of whether X is running, a handy ssh-agent.service is included in openssh since the version 9.4p1-3, which can be enabled as a user unit.
So maybe it is useful to add something like this in ssh role:
- name: Enable ssh-agent service
service:
name: ssh-agent.service
enabled: yes
state: started
scope: user
become: yes
become_user: "{{ user.name }}"
environment:
XDG_RUNTIME_DIR: "/run/user/{{ user.uid }}"
Metadata
Metadata
Assignees
Labels
No labels