[meta] symlink the 1Password SSH agent.sock
change
commit abe52bc0406425b0fe9592654d44242319171778
author Alpha Chen <alpha@kejadlen.dev>
date
parent a8212f54
diff --git a/meta/playbooks/mac_os.yml b/meta/playbooks/mac_os.yml
index e3c271b2..3a06c5e2 100644
--- a/meta/playbooks/mac_os.yml
+++ b/meta/playbooks/mac_os.yml
@@ -60,3 +60,11 @@
             regexp: '^auth\s+optional\s+.*pam_reattach.so$'
             line: "auth\toptional\t{{ brew_prefix.stdout | trim }}/lib/pam/pam_reattach.so"
           become: yes
+
+    # https://developer.1password.com/docs/ssh/get-started#step-4-configure-your-ssh-or-git-client
+    - file: path=~/.1password state=directory
+    - name: Symlink 1Password agent
+      file:
+        src: ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
+        dest: ~/.1password/agent.sock
+        state: link