add ssh-agent service
This commit is contained in:
parent
0048372069
commit
401973a0bb
10 changed files with 61 additions and 18 deletions
10
roles/system/templates/ssh-agent.service.j2
Normal file
10
roles/system/templates/ssh-agent.service.j2
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=SSH_AUTH_SOCK={{ ssh_agent_socket }}
|
||||
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Reference in a new issue