Ansible role for managing ssh-agent daemon with systemd
Find a file
2023-04-16 22:42:23 +02: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 Service was not enabled on install 2023-04-16 22:42:23 +02:00
README.md Add licence 2022-11-29 00:26:07 +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

Licence

This script is released under le MIT licence

Copyright © 2021 Yorick Barbanneau

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.