First commit

This commit is contained in:
Yorick Barbanneau 2022-11-20 00:45:12 +01:00
commit 9417f24a25
4 changed files with 61 additions and 0 deletions

21
README.md Normal file
View file

@ -0,0 +1,21 @@
SSH-Agentd Ansible role
-----------------------
This role create service and environment for managing ssh-agent service with
systemd.
Note that for exporting SSH_AUTH_SOCK in your session, you need to parse
fnvironment file in `XDG_CONFIG_DIR`. Here is an example for zsh, i put this
little snippet in my `.zprofile`:
```zsh
for file in ~/.config/environment.d/*.conf
do
while read -r line
do
varname=${line%=*}
value=${${(e)line#*=}//\"}
export $varname="${value}"
done < $file
done
```