From f47b45d82c5eefa77bd2681200e3e0054ce9469c Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Mon, 3 Oct 2022 22:45:07 +0100 Subject: [PATCH] Use op.exe on WSL for biometrics --- roles/1password/tasks/Debian.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/1password/tasks/Debian.yaml b/roles/1password/tasks/Debian.yaml index eb36487..95d9b71 100644 --- a/roles/1password/tasks/Debian.yaml +++ b/roles/1password/tasks/Debian.yaml @@ -1,5 +1,6 @@ --- - name: add apt signing key + when: '"WSL" not in ansible_kernel' become: true apt_key: url: https://downloads.1password.com/linux/keys/1password.asc @@ -15,6 +16,7 @@ fail_msg: 'Architecture not currently supported: {{ansible_machine}}' - name: add apt repository + when: '"WSL" not in ansible_kernel' become: true apt_repository: repo: >- @@ -30,9 +32,17 @@ state: latest - name: install cli package + when: '"WSL" not in ansible_kernel' become: true apt: name: 1password-cli state: latest +- name: create symlink to op.exe + when: '"WSL" in ansible_kernel' + file: + state: link + src: /mnt/c/Users/Benie/AppData/Local/1Password/cli/op.exe + dest: ~/.local/bin/op + - include_tasks: zsh-completion.yaml