From 25e9adf1a0ef0393c38bb776e4420f23be63b809 Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Thu, 5 Nov 2020 20:25:27 +0100 Subject: [PATCH] pass: configure passwordstore with remote --- roles/passwordstore/tasks/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 roles/passwordstore/tasks/main.yml diff --git a/roles/passwordstore/tasks/main.yml b/roles/passwordstore/tasks/main.yml new file mode 100644 index 0000000..02cb121 --- /dev/null +++ b/roles/passwordstore/tasks/main.yml @@ -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" +