pass: configure passwordstore with remote

This commit is contained in:
transcaffeine 2020-11-05 20:25:27 +01:00
parent 2afa4283c1
commit 25e9adf1a0
Signed by: transcaffeine
GPG Key ID: 03624C433676E465

View File

@ -0,0 +1,23 @@
---
- name: Install package
package:
name: pass
state: present
- name: Initialise password store
command:
cmd: "pass init {{ passwordstore_id }}"
- name: Set password store git upstream
command:
cmd: "pass git remote set origin ssh://git@git.finallycoffee.eu:8022/{{ ansible_user }}/password-store.git"
- name: Fetch upstream password store
command:
cmd: "pass git fetch --all"
- name: Set master to upstream master
command:
cmd: "pass git checkout -B master origin/master"