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