Add gpg_auth to Linux.
This commit is contained in:
9
ansible/roles/ssh_client/files/gpg_auth_linux
Normal file
9
ansible/roles/ssh_client/files/gpg_auth_linux
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Wrapper to set the SSH auth socket to GPG for services that do not
|
||||
# yet support security key ssh keys
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
exec env SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh" "$@"
|
||||
@@ -12,5 +12,5 @@
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: gpg_auth
|
||||
- src: gpg_auth_freebsd
|
||||
dest: /usr/local/bin/gpg_auth
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# - name: Install packages
|
||||
# pacman:
|
||||
# name:
|
||||
# - foo
|
||||
# state: present
|
||||
# update_cache: true
|
||||
- name: Install scripts
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- src: gpg_auth_linux
|
||||
dest: /usr/local/bin/gpg_auth
|
||||
|
||||
Reference in New Issue
Block a user