Fix pass script

This commit is contained in:
2024-04-14 00:27:14 +02:00
parent 96fe4d9ec4
commit db1dddf2ff
2 changed files with 14 additions and 25 deletions

View File

@@ -444,28 +444,3 @@
when: user.gpg_key is defined
tags: [gpg]
- block:
- name: add passwordstore init script
copy:
dest: /home/{{ user.name }}/bin
owner: "{{ user.name }}"
group: "{{ user_group_name }}"
mode: '0755'
content: |
#!/usr/bin/env bash
set -o nounset
set -o errexit
if [[ ! -e ~/.password-store ]] ; then
printf '%s\n' 'This is the first time running pass, initializting repository ...'
git clone ssh://git@code.hkoerber.de:2222/hannes/passwordstore.git ~/.password-store
printf '%s\n' 'Done'
fi
command -p pass "${@}"
when: user.enable_passwordstore|default(false) is sameas true
tags: [passwordstore]