Ansible role for managing ssh-agent daemon with systemd
Find a file
2022-11-23 00:35:47 +01:00
files Systemd does not expand variable value 2022-11-23 00:31:42 +01:00
meta Add metadata 2022-11-23 00:35:47 +01:00
tasks First commit 2022-11-20 00:45:12 +01:00
README.md First commit 2022-11-20 00:45:12 +01:00

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:

for file in ~/.config/environment.d/*.conf
do
    while read -r line
    do
        varname=${line%=*}
        value=${${(e)line#*=}//\"}
        export $varname="${value}"
    done < $file
done