Add systemd service setup
This commit is contained in:
parent
e64c4a9879
commit
4aa78f0c48
8 changed files with 79 additions and 1 deletions
12
roles/arch/templates/ssh-agent.j2
Normal file
12
roles/arch/templates/ssh-agent.j2
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
|
||||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
||||
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue