Fix pass script
This commit is contained in:
25
user.yml
25
user.yml
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user